Free tool · Runs in your browser

robots.txt generator for AI crawlers

Pick a policy, add your private paths, and copy a robots.txt that keeps you in ChatGPT Search, Perplexity and Google AI Overviews while opting out of model training. Every crawler links to its vendor’s documentation.

Updated

Crawlers

  • GooglebotSearch & citationsdocs ↗

    Google — Google Search crawler

  • Google-ExtendedModel trainingdocs ↗

    Google — Gemini / Google AI training and grounding control

  • Google-CloudVertexBotUser-triggered fetchdocs ↗

    Google — Vertex AI user-triggered site fetch

  • BingbotSearch & citationsdocs ↗

    Microsoft — Bing Search crawler

  • OAI-SearchBotSearch & citationsdocs ↗

    OpenAI — ChatGPT Search indexing and citations

  • ChatGPT-UserUser-triggered fetchdocs ↗

    OpenAI — User-initiated fetches from ChatGPT

  • GPTBotModel trainingdocs ↗

    OpenAI — OpenAI foundation-model training crawler (not search)

  • PerplexityBotSearch & citationsdocs ↗

    Perplexity — Perplexity Search indexing and sourced answers

  • Perplexity-UserUser-triggered fetchdocs ↗

    Perplexity — User-initiated fetches from Perplexity

  • ClaudeBotModel trainingdocs ↗

    Anthropic — Anthropic crawler for model training

  • Claude-UserUser-triggered fetchdocs ↗

    Anthropic — User-initiated fetches from Claude

  • Claude-SearchBotSearch & citationsdocs ↗

    Anthropic — Claude search indexing

  • ApplebotSearch & citationsdocs ↗

    Apple — Apple Search / Spotlight crawler

  • Applebot-ExtendedModel trainingdocs ↗

    Apple — Apple Intelligence training and grounding control

  • AmazonbotSearch & citationsdocs ↗

    Amazon — Amazon product and site crawler

  • CCBotModel trainingdocs ↗

    Common Crawl — Common Crawl open web crawl (often used for training corpora)

  • meta-externalagentModel trainingdocs ↗

    Meta — Meta AI training crawler

robots.txt

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

# AI training crawlers (does not affect AI search or Google Search)
User-agent: Google-Extended
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: meta-externalagent
Disallow: /

Upload it to the root of your domain so it is served at https://yoursite.com/robots.txt. robots.txt is a request, not access control — firewalls and CDNs can still block crawlers you allow here.

How the generated file works

The output uses two groups. User-agent: * holds the rules for everyone, including your private paths. Crawlers you block share a second group that ends in Disallow: / — several User-agent lines in one group is valid under RFC 9309, the robots.txt standard Google documents its crawlers against.

Allowed crawlers are deliberately not listed. If they were, each would need its own copy of your private-path rules, because a crawler that finds a group with its name ignores the * group. Leaving them out is shorter and safer.

Which preset should you use?

  • AI search yes, training no — for businesses, publishers and stores that want to be cited and clicked from AI answers but don’t want to supply training data. Most sites.
  • Allow everything — for documentation, open-source projects and anyone who wants maximum reach, including being part of future model knowledge.
  • Block all AI — keeps classic Google, Bing and Apple search but removes you from ChatGPT, Claude and Perplexity answers. Note that Google AI Overviews still use Googlebot.

Mistakes this generator avoids

  • Blocking Google-Extended to leave AI Overviews. It doesn’t; AI Overviews follow Googlebot rules.
  • An empty Disallow: line. It means “allow everything”, not “block everything”.
  • Blocking CSS and JavaScript. Google needs them to render the page; never disallow your asset folders.
  • Wrong case in paths. Paths are case-sensitive: /Admin/ does not block /admin/.
  • Using robots.txt for secrets. The file is public. Protect private areas with authentication.

Test it after uploading

Run the AI crawler checker on any page of your site. It reports, for each crawler, which rule matched and whether a CDN or firewall answered the request differently. In Google Search Console, the robots.txt report shows the version Google last fetched.

Frequently asked questions

How do I block AI training but stay in AI search results?

Block the training user-agents (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot, meta-externalagent) and leave the search agents (OAI-SearchBot, Claude-SearchBot, PerplexityBot, Googlebot, Bingbot) allowed. The “AI search yes, training no” preset does exactly that.

Do I need to list every crawler I want to allow?

No. A crawler without its own group follows the User-agent: * group. Naming a crawler you want to allow is only useful if it needs different rules — and then you must repeat your private-path disallows inside that group, because a named crawler ignores the * group entirely.

Can robots.txt remove a page from Google?

No. A disallowed URL can still be indexed (without its content) if other pages link to it. To keep a page out of search results, allow crawling and add a noindex meta tag or X-Robots-Tag header. Google does not support noindex inside robots.txt.

Will blocking GPTBot stop my content from appearing in ChatGPT?

It stops OpenAI from using your pages for future model training. ChatGPT Search answers come from OAI-SearchBot, so blocking GPTBot alone does not remove you from ChatGPT Search.

Where do I upload robots.txt?

At the root of each host: https://yoursite.com/robots.txt. A robots.txt on www.yoursite.com does not apply to shop.yoursite.com. On WordPress most SEO plugins have a robots.txt editor; on Shopify edit the robots.txt.liquid theme template; on Wix and Squarespace use the SEO settings.