robots.txt for AI Crawlers: What to Allow and Block
AI companies run separate bots for training and for answering questions. Block the training bots if you want, but keep the search and user-request bots allowed, or you disappear from AI answers.
Learn how to leverage AI agents for marketing, sales and product. Every week I share what I learned with 5,400+ readers.
✓ Check your inbox — click the confirmation link to complete sign-up.
✓ You're subscribed!
✓ You're already on the list.
Most sites that vanish from ChatGPT answers did it to themselves. Someone read a headline about AI scraping, pasted a block of Disallow: / rules into robots.txt, and shut out the bots that fetch pages when a customer asks a question.
The fix takes ten minutes, but you have to know that each AI company runs more than one bot, and they do different jobs.
Table of contents
Open Table of contents
Training bots and answer bots are different
Every major AI company now splits its crawling into purposes. I checked each vendor’s own documentation before writing this.
| Company | Bot | What it does | Block it and… |
|---|---|---|---|
| OpenAI | GPTBot | Crawls content that may be used to train its models | Your content stays out of future training |
| OpenAI | OAI-SearchBot | Surfaces sites in ChatGPT search | You won’t be shown in ChatGPT search answers |
| OpenAI | ChatGPT-User | Visits a page when a user asks ChatGPT about it | OpenAI says robots.txt rules may not apply, since a person triggered the visit |
| Anthropic | ClaudeBot | Collects content that could contribute to training | Your future content is excluded from training datasets |
| Anthropic | Claude-SearchBot | Indexes the web to improve search results | Less visibility in Claude search results |
| Anthropic | Claude-User | Fetches a page when a Claude user asks a question | Claude can’t retrieve your content for that user |
Google-Extended | A robots.txt token that controls Gemini training and grounding | Opts out of Gemini use; Google says it doesn’t affect Search inclusion or ranking |
Two things worth knowing about that table. Google-Extended has no user agent string of its own, so it never shows up in your server logs. And ChatGPT-User is the odd one out: because a human asked for the page, OpenAI says it may not follow robots.txt at all.
The decision: three setups
1. Open door. Allow everything. This is what I run on this site, with every bot above set to Allow: /. I want to be cited, and I’d rather be quoted than protected.
2. Opt out of training, stay in the answers. Disallow GPTBot, ClaudeBot and Google-Extended. Allow OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User and PerplexityBot. This suits publishers who sell their archive or worry about reuse, and still want to appear when someone asks a question.
3. Closed door. Disallow all of them. Only do this if AI visibility has no value to you, for example a paywalled research product that sells by sales call. Everyone else is trading away discoverability for a feeling of control.
For an agency client or a local business, option 1 or 2 is almost always right. Setup 3 is rarely a decision anyone has actually thought through.
The file for option 2
Add these lines to your existing robots.txt. Don’t replace the file, because your sitemap line and your Googlebot and Bingbot rules need to stay.
# Training: opted out
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
# Search and live answers: allowed
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: Claude-User
Allow: /
User-agent: PerplexityBot
Allow: /If you’d rather not edit it by hand, the AI robots.txt generator has a toggle per bot and gives you the finished lines to paste in.
Check it actually works
- Open
https://yourdomain.com/robots.txtin a browser. It must load as plain text from the root of the domain, once per subdomain. - Run your site through the AI crawler access checker to see which bots your rules let in.
- Wait. OpenAI says it can take about 24 hours after a robots.txt update for its systems to adjust.
- Check that your firewall or CDN isn’t blocking the bots anyway. A robots.txt that says Allow doesn’t help if a bot-protection rule returns a 403 to the same crawler. This is the failure I’d look for first when a site “allows” AI bots and still gets no citations.
What not to do
- Don’t block by IP address. Anthropic’s documentation warns that IP blocking may not reliably opt you out, because it can stop the bot from reading your robots.txt in the first place.
- Don’t treat robots.txt as security. It’s a request that named, well-behaved bots honor. Scrapers that ignore it need server-side rules.
- Don’t use robots.txt to hide pages you want out of Google. That’s a
noindexjob. - Don’t forget Crawl-delay is non-standard. Anthropic says it supports it for
ClaudeBot. Don’t assume every bot does.
One more file worth publishing
Once the doors are open, tell the bots where the good pages are. That’s what llms.txt is for, and my write-up on whether it actually moves citations covers what I’d expect from it. To see whether any of this is paying off, measure your AI search traffic.
Learn how to leverage AI agents for marketing, sales and product. Every week I share what I learned with 5,400+ readers.
✓ Check your inbox — click the confirmation link to complete sign-up.
✓ You're subscribed!
✓ You're already on the list.
Related posts
GEO for Multilingual Sites: Getting Cited in Every Language
Running GEO on a site that publishes in 13 languages taught me hreflang, llms.txt, and schema all behave differently than English-only advice assumes.
GEOHow to Add GEO to an Existing SEO Retainer
How an SEO agency adds real GEO work to an existing retainer — audit first, price it as its own line, and avoid relabeling the same deliverables.
SEOGEO Audit Pricing: What to Charge Clients
How I structure and price a GEO audit — the flat-fee scoping approach, what belongs in the deliverable, and when to convert it into a retainer.
Get the AI playbook in your inbox
Learn how to leverage AI agents for marketing, sales and product. Every week I share what I learned with 5,400+ readers.
Check your inbox.
We sent you a confirmation email — click the link inside to complete your subscription. Check spam if you don't see it within a minute.
You're subscribed.
Welcome — the next edition lands in your inbox soon.
You're already on the list — look for it every Wednesday.