Skip to content
toolgrid

No tool found. Try another word.

Robots.txt Generator

Create a valid robots.txt: block or allow paths, add your sitemaps, block AI crawlers such as GPTBot and set a crawl delay. Copy or download.

robots.txt

Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.

How to use the Robots.txt Generator

  1. 1 Choose whether crawlers may visit everything or nothing by default.
  2. 2 List the paths to block and any exceptions, and add your sitemap URLs.
  3. 3 Download robots.txt and upload it to the root of your site, e.g. example.com/robots.txt.

About the Robots.txt Generator

robots.txt is a plain text file at the root of a website that tells crawlers which parts they may visit. Search engines such as Google and Bing respect it; it's how you keep crawlers out of admin pages, internal search results or endless filter combinations, and how you point them to your sitemap.

The generator writes the rules in the standard format: a "User-agent: *" group for all crawlers with your Disallow and Allow lines, separate groups for bots you want to block completely, and Sitemap lines. The button for AI crawlers adds the user agents of OpenAI, Anthropic, Google's AI training, Perplexity, Common Crawl and others. Paths without a leading slash get one.

robots.txt is a request, not a lock: well-behaved crawlers follow it, but it does not protect private content, and blocked pages can still appear in search results if other sites link to them. To keep a page out of Google, allow crawling and use a noindex tag instead. Google ignores Crawl-delay; Bing and some others use it.

Frequently asked questions

Where do I put robots.txt?

In the root of your domain, so it's available at https://www.example.com/robots.txt. Each subdomain needs its own file.

Does Disallow remove a page from Google?

No. It stops crawling, but a blocked URL can still be indexed from links. Use a noindex meta tag (and allow crawling) to remove pages.

How do I block AI crawlers like GPTBot?

Add a group per bot with "Disallow: /". The "Block common AI crawlers" button adds the best-known ones. Only crawlers that respect robots.txt will comply.

What does an empty Disallow mean?

"Disallow:" without a path means nothing is blocked: all crawlers may visit the whole site.