Free tool · Runs in your browser

Free robots.txt generator

Build robots.txt in seconds.

Block these AI crawlers

Blocking GPTBot, ClaudeBot or PerplexityBot can keep you out of ChatGPT, Claude and Perplexity answers.

Your robots.txt

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

User-agent: CCBot
Disallow: /

User-agent: Bytespider
Disallow: /

Sitemap: https://yoursite.com/sitemap.xml

Save this as robots.txt at the root of your domain.

Get a free 30-day SEO plan for your site

We'll email you the keywords worth targeting and the articles to write first. Unsubscribe anytime.

What robots.txt does (and doesn't do)

robots.txt tells crawlers which parts of your site they may fetch. It doesn't hide pages: a disallowed URL can still be indexed if other sites link to it. Use noindex for pages you want out of search, and robots.txt for crawl control.

Always list your sitemap. It's the quickest way to point every search engine at the pages you do want found.

Should you block AI crawlers?

Blocking GPTBot, ClaudeBot or PerplexityBot keeps your content out of those companies' crawls, but it can also keep you out of their answers. If you want ChatGPT, Claude or Perplexity to recommend you, let their search crawlers in. Google-Extended only controls Gemini training and doesn't affect Google Search.

Questions people ask

Where does robots.txt go?+

At the root of your domain: https://yoursite.com/robots.txt. It only applies to that host, so subdomains need their own.

Will blocking Google-Extended hurt my rankings?+

No. Google-Extended controls whether your content is used for Gemini. Googlebot, which does Search, is separate.

Does Crawl-delay work?+

Bing and some others respect it. Google ignores it.