Robots.txt Generator

Build a robots.txt file and copy it to the root of your site.

Loading tool...

How to use Robots.txt Generator

  1. Choose a starting preset.
  2. Add the paths to allow or disallow, and your sitemap URL.
  3. Copy the file and upload it as /robots.txt.

About this tool

robots.txt tells crawlers which parts of your site they may request. It is a public request, not a security measure, and a blocked page can still appear in results if other sites link to it. Use a noindex tag or authentication for pages that must stay private.

The optional AI crawler block adds rules for GPTBot, ClaudeBot, CCBot, Google-Extended, PerplexityBot and others. Well-behaved crawlers follow these rules; not all bots do.

Frequently Asked Questions

Where does robots.txt go?
At the root of your domain, for example https://example.com/robots.txt.
Does Disallow remove a page from Google?
No. It only stops crawling. To remove a page use noindex or the removal tool.
Does Google use crawl-delay?
No. Googlebot ignores it, although some other crawlers respect it.

Related tools