Rates TodayNIFTY25,819.3+2.34%SENSEX83,938.3+2.32%Gold 24K ₹11,235.62/g down271.8Silver ₹128.69/g down5.77
InsightforGeeks

Robots.txt Generator

Build a robots.txt file without remembering the syntax. Start from a ready-made choice such as a typical website, WordPress, blocking AI crawlers or blocking a staging site, then add rules for any crawler, allow or disallow paths and list your sitemaps. The file updates as you type, with warnings for risky settings such as blocking the whole site. It runs in your browser, so nothing is uploaded.

Keeps crawlers out of admin, cart and internal search pages.

robots.txt

User-agent: *
Disallow: /admin/
Disallow: /cart/
Disallow: /search

Sitemap: https://www.example.com/sitemap.xml

Upload it to the top level of your site, so it opens at /robots.txt.

robots.txt asks crawlers to stay away. It does not keep a page private, and a blocked page can still appear in search if other sites link to it. Use a password or noindex for that.

How to use it

  1. Choose a starting point, or build your own.
  2. Edit the Disallow and Allow paths for each crawler, and add more crawlers if you need.
  3. Add your sitemap address.
  4. Copy the text or download robots.txt and upload it to the top level of your site.

Frequently asked questions

Is what I paste uploaded anywhere?

No. This tool runs in your browser, on your own device, and what you paste is never sent to our server.

Where does the robots.txt file go?

At the top level of your domain, so that it opens at https://www.yoursite.com/robots.txt. Each subdomain needs its own file.

Does robots.txt hide a page from Google?

No. It asks crawlers not to fetch a page, but a blocked page can still appear in results if other sites link to it. To keep a page out of search, use a noindex tag or password protection.

Will blocking AI crawlers work?

It asks those crawlers to stay out. Well-behaved crawlers that follow robots.txt honour it, but the file cannot force a crawler to obey.

What does Disallow: / do?

It asks the crawler to stay out of the entire site. That is right for a staging site and a disaster on a live one, so the tool warns you.

What is crawl delay?

A number of seconds to wait between requests. Google ignores it. Bing and some other crawlers follow it.

Related tools

These tools run entirely in your browser and are provided free, without warranty. Check important results before using them in production.