Robots.txt generator
Start from a preset, switch crawlers on or off and add your sitemap. Copy or download the file.
To opt out of AI training but stay in AI search, disallow the training tokens, such as GPTBot, ClaudeBot and Google-Extended, and leave search crawlers such as OAI-SearchBot, Claude-SearchBot and PerplexityBot allowed. Each crawler follows only the group that names it, so one file can do both.
Switch off to block a crawler from the whole site.
# AI training crawlers: opted out User-agent: GPTBot User-agent: ClaudeBot User-agent: Google-Extended User-agent: Applebot-Extended User-agent: meta-externalagent User-agent: Amazonbot User-agent: CCBot Disallow: / # Everyone else User-agent: * Disallow: /admin/ Disallow: /cart Sitemap: https://example.com/sitemap.xml
Upload it to the root of your host as /robots.txt. Each subdomain needs its own file.
How to use it
- 01Pick a presetAllow all, block AI training, block everything, or start from scratch with custom.
- 02Switch crawlersTurning a crawler off adds it to a group with
Disallow: /. Changing a switch moves you to custom. - 03Add your sitemap and private pathsPaths you list are disallowed for every crawler that has no group of its own.
- 04Upload itSave the file as
/robots.txtat the root of your host, then check it with the robots.txt tester.
The presets
| Preset | What it writes | Use it when |
|---|---|---|
| Allow all | User-agent: * with Allow: / | You want every crawler everywhere. |
| Block AI training | One group of training tokens with Disallow: / | You want AI search and user fetches, not model training. |
| Block everything | User-agent: * with Disallow: / | A staging or preview site. |
| Custom | Your switches and paths | Anything else. |
Crawlers by job
Each role comes from the operator's own documentation. Blocking a training crawler opts you out of future training; blocking a search crawler can keep you out of that service's answers.
| Crawler | Job | What the operator says it does |
|---|---|---|
| GPTBot | AI training | Crawls content that may be used to train OpenAI's generative AI foundation models. |
| ClaudeBot | AI training | Collects web content that could potentially contribute to training Anthropic's generative AI models. |
| Google-Extended | AI training | A standalone robots.txt product token publishers use to manage whether content Google crawls may be used to train future Gemini models and for grounding in Gemini Apps and Grounding with Google Search on Vertex AI. |
| Applebot-Extended | AI training | A secondary robots.txt token that lets publishers opt out of their content being used to train Apple's general purpose foundation models. |
| Meta-ExternalAgent | AI training | Crawls the web for use cases such as training foundation AI models or improving products by indexing content directly. |
| Amazonbot | AI training | Used to improve Amazon products and services; Amazon says it may be used to train Amazon AI models. |
| CCBot | AI training | Crawler for Common Crawl, a non-profit that provides an open copy of the web for research and analysis. |
| OAI-SearchBot | AI search | Surfaces websites in search results in ChatGPT's search features. |
| Claude-SearchBot | AI search | Navigates the web to improve the relevance and accuracy of Claude's search results. |
| PerplexityBot | AI search | Designed to surface and link websites in Perplexity search results; Perplexity says it is not used to crawl content for AI foundation models. |
| ChatGPT-User | User fetch | Visits web pages for certain user actions in ChatGPT and Custom GPTs, including GPT Actions. |
| Claude-User | User fetch | Accesses websites when individuals ask Claude questions. |
| Perplexity-User | User fetch | Visits a page to help answer a user's question in Perplexity and link the page; not used for web crawling or to collect training content. |
| Googlebot | Search | Google Search's crawler, used as Googlebot Smartphone and Googlebot Desktop; its crawl preferences also affect Google Images, Video, News and Discover. |
| Bingbot | Search | Bing's web crawler. |
| Applebot | Search | Apple's web crawler; its data powers search in Spotlight, Siri and Safari, may provide context for AI answers, and may help train Apple foundation models. |
CCBot (Common Crawl) builds an open web dataset that others reuse, so the training preset includes it.
Common mistakes
User-agent: Applebot
Disallow: /Applebot powers search in Spotlight, Siri and Safari.User-agent: Applebot-Extended
Disallow: /Apple says Applebot-Extended "does not crawl webpages"; it only controls training use.User-agent: OAI-SearchBot
Allow: /
User-agent: *
Disallow: /admin/A crawler with its own group ignores the * group, so /admin/ is open to it.User-agent: OAI-SearchBot
Disallow: /admin/Repeat private paths in every named group.User-agent: *
Disallow: / (on production)Every crawler is shut out, search engines included.User-agent: *
Allow: /Block whole sites on staging only.What people ask next
Where does robots.txt go?
At the top-level directory of the host, as /robots.txt. Google says crawlers "don't check for robots.txt files in subdirectories," and a file on a subdomain is only valid for that subdomain.
Will blocking GPTBot keep me out of ChatGPT search?
No, they are separate. OpenAI says disallowing GPTBot "indicates a site's content should not be used in training generative AI foundation models." ChatGPT search uses OAI-SearchBot: "Sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though can still appear as navigational links."
Is there one line that blocks every AI crawler?
No. Each crawler looks for a group that names its own product token, and falls back to * only if none does. List each token you want to block.
Can I keep a staging site out of Google with robots.txt?
Not reliably. Google says it may still index a disallowed URL and show it without a snippet. Put staging behind a login, or use noindex on pages crawlers can fetch.
Every rule, linked and dated
- How Google interprets the robots.txt specification developers.google.comchecked 25 Oct 2026
- RFC 9309: Robots Exclusion Protocol rfc-editor.orgchecked 25 Oct 2026
- Overview of OpenAI crawlers developers.openai.comchecked 25 Oct 2026
- Does Anthropic crawl data from the web, and how can site owners block the crawler? support.claude.comchecked 25 Oct 2026
- Perplexity crawlers docs.perplexity.aichecked 25 Oct 2026
- About Applebot support.apple.comchecked 25 Oct 2026
Learn. Compare. Do.
Wrote the file? Check what crawlers see.
The free audit reads your live robots.txt and checks AI visibility in ChatGPT, Perplexity, Gemini and Google AI Overviews.
Audit my site free