GEO · AI
How to allow AI crawlers in robots.txt
The essentials
- Each AI company uses different bots to search and to train. Blocking one does not block the other.
- If you block
OAI-SearchBot, ChatGPT cannot show or cite your site when it searches. - You can opt out of training without disappearing from answers.
- AI Overviews and AI Mode use
Googlebot: block it and you disappear from Google altogether.
The bots that matter
This table separates the bots that feed search-backed answers from the ones that collect data to train models. It is the distinction people mix up the most.
| Bot | Company | What for | If you block it |
|---|---|---|---|
| OAI-SearchBot | OpenAI | ChatGPT search | ChatGPT does not show or cite you when searching |
| GPTBot | OpenAI | Model training | Your content is not used for training; search is unchanged |
| Claude-SearchBot | Anthropic | Claude search | Claude does not use you as a source when searching |
| ClaudeBot | Anthropic | Model training | Your content is not used for training |
| PerplexityBot | Perplexity | Perplexity’s search index | Perplexity stops listing you among its sources |
| Googlebot | Search, AI Overviews and AI Mode | You disappear from Google entirely | |
| Google-Extended | Use in Gemini; not a separate bot | No effect on Google Search or AI Overviews |
Two more are worth knowing: Claude-User, which reads the pages a Claude user asks it to look at, and Applebot-Extended, which Apple uses for training and which you can block without leaving its search. The SEO Army auditor checks the four that decide whether you show up in search-backed answers: Googlebot, OAI-SearchBot, PerplexityBot and Claude-SearchBot.
How to check your robots.txt
- Open
yoursite.com/robots.txtin the browser. - Look for
User-agentgroups naming each bot, and for theUser-agent: *group, which applies to every bot without a group of its own. - A
Disallow: /in a bot’s group keeps it out of the whole site. - If a bot has its own group, it ignores the
*group: it only follows the rules in its own.
Check your CDN too
This is what almost nobody checks. Cloudflare and other CDNs have “Block AI bots” style options that answer 403 to AI bots at the edge, whatever your robots.txt says.
- On Cloudflare, check Security → Bots and AI Crawl Control, and allow the search bots you want.
- Make sure the feature that manages robots.txt is not overwriting your file.
- A CDN block does not show up in robots.txt, so a robots.txt check cannot see it either: confirm it in the CDN’s security event log, which shows which bots got a
403.
The recommended setup
If you want to show up in answers without handing over your content for training, start here. Adjust the private paths to your site.
User-agent: OAI-SearchBot User-agent: Claude-SearchBot User-agent: PerplexityBot Allow: / User-agent: GPTBot User-agent: ClaudeBot Disallow: / User-agent: * Disallow: /admin/
If you do not mind training, there is no need to name anyone: without groups of their own, every bot follows the User-agent: * rules.
Check it
See which AI bots can read your page
Common mistakes
- **Blocking everything with
User-agent: *** and forgetting it includes AI search bots without a group of their own. - Thinking that blocking GPTBot takes you out of ChatGPT. Search uses OAI-SearchBot.
- Blocking at the firewall or CDN even though robots.txt allows it. Check your provider’s bot rules too: robots.txt cannot see them.
- A robots.txt that returns an error. If the server gives a 5xx, bots treat the site as blocked.