Robots.txt for AI Crawlers: Which Bots to Allow and Block
One robots.txt line can keep you out of AI training, and the wrong one keeps you out of AI answers. Here is what each AI crawler does according to its maker, which ones I would allow, and a file you can copy.
Contents
Robots.txt for AI crawlers has become a business decision, not just a technical file. One line can keep your content out of AI training, and the wrong line can make you invisible in ChatGPT, Claude or Perplexity answers. OpenAI's documentation is explicit: "Sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers". And since Cloudflare announced on 1 July 2025 that it was "changing the default to block AI crawlers unless they pay creators for their content", many sites block AI bots without knowing it.
I check robots.txt files every week, and the same mistake comes back: a site blocks "all AI" with one rule, then wonders why ChatGPT never recommends it. This guide sorts the AI crawlers that matter by what they do, based only on each company's official documentation, tells you which ones I would allow, and gives you a file you can copy.
What kinds of AI crawlers are there?
AI crawlers fall into three families: training bots, search bots and user fetchers. Training bots collect content to build future models. Search bots build the index that AI assistants use to answer with links. User fetchers visit one page because a person asked the assistant to read it. Each family has a different user agent, and blocking one does not block the others.
This split is the key to the whole decision. Most site owners who block AI bots want to stop training, not to vanish from AI answers. With the right file, you can do the first without the second.
Which AI crawlers should you know, and what does each one do?
Eleven user agents cover the main AI assistants. OAI-SearchBot, Claude-SearchBot and PerplexityBot decide whether you can appear in answers; GPTBot, ClaudeBot, Google-Extended and CCBot concern training; the "-User" agents fetch pages on request. Here is what each company says about its own bots.
| User agent | Company | Role (official documentation) | If you block it |
|---|---|---|---|
| OAI-SearchBot | OpenAI | Surfaces websites in ChatGPT search features | Not shown in ChatGPT search answers |
| GPTBot | OpenAI | Training of generative AI foundation models | Content kept out of future training |
| ChatGPT-User | OpenAI | User actions in ChatGPT and custom GPTs | robots.txt "may not apply", says OpenAI |
| Claude-SearchBot | Anthropic | Improves search result quality for users | May reduce visibility in Claude's search answers |
| ClaudeBot | Anthropic | Collects content that may be used for training | Future content excluded from training |
| Claude-User | Anthropic | Fetches pages when a user's question needs them | Claude cannot read your page on request |
| PerplexityBot | Perplexity | Surfaces and links websites in Perplexity results; not used for training | Not surfaced in Perplexity search |
| Perplexity-User | Perplexity | Fetches pages for user actions; "generally ignores robots.txt rules" | Little effect via robots.txt |
| Googlebot | Google Search, including AI Overviews and AI Mode | Out of Google entirely | |
| Google-Extended | Control token for Gemini training and grounding in Gemini apps and Vertex AI | No effect on Google Search or ranking | |
| CCBot | Common Crawl | Open web archive, widely used to build AI datasets | Not in future Common Crawl archives |
Two lines deserve attention. Google-Extended is not a crawler but a control token: Google says it "does not impact a site's inclusion in Google Search nor is it used as a ranking signal" (Google crawler documentation). So blocking it does not take you out of AI Overviews or AI Mode; that requires the Search Console control I describe in my guide to Google AI Overviews SEO. And the user fetchers are, by design, a gray zone: OpenAI and Perplexity both say robots.txt may not apply to requests a person initiated.
Which AI crawlers should you allow?
If you sell anything, allow the search bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and Googlebot, always. Training bots are a real choice: blocking them protects your content from future model training, and has no documented effect on whether AI search cites you today.
Why I insist on the search bots: AI assistants cite only a handful of links per answer. In Sorank's study of 498,158 AI answers (sorank.com/data, snapshot of 2 November 2026), ChatGPT cites 3.30 links per answer on average, Claude 2.99 and Perplexity 2.74. With so few seats, a blocked search bot is not a small loss: it is zero chance.
My recommendation by profile:
- Business, local service, SaaS, e-commerce: allow everything. Your content is marketing; being in the training data of the next model can only help AIs know you.
- Publisher or paid content: allow search bots (they bring citations and links), block training bots (GPTBot, ClaudeBot, Google-Extended, CCBot).
- Private or sensitive areas: robots.txt is not protection. The standard itself says so: "These rules are not a form of access authorization" (RFC 9309). Use logins and server rules.
What does a good robots.txt for AI crawlers look like?
A good file names each AI bot you want to treat differently, and keeps a general rule for everyone else. Here is the version for a publisher who wants AI citations but no training. For a business site, simply delete section 2.
# 1. Search bots: allowed, so AI answers can cite you
User-agent: OAI-SearchBot
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
# 2. Training bots: your choice (here: blocked)
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: CCBot
Disallow: /
# 3. Everyone else, including Googlebot
User-agent: *
Allow: /
Disallow: /admin/
Sitemap: https://www.example.com/sitemap.xml
- Order does not matter, specificity does. A crawler follows the group that names it most precisely and ignores the "*" group. That is why each AI bot gets its own block.
- One file per host. blog.example.com needs its own robots.txt; the one on www does not cover it.
- Delays. OpenAI says changes take about 24 hours to be picked up.
- Not for llms.txt. Do not put access rules in an llms.txt file; crawlers do not read them there. See what llms.txt is and is not.
To start from a clean base, a robots.txt generator builds the file for you, and you can paste the AI section above into it.
How do you check that your robots.txt is not blocking AI search?
Open yoursite.com/robots.txt in a browser and look for three things: a "Disallow: /" under OAI-SearchBot, Claude-SearchBot or PerplexityBot, a "User-agent: *" group that disallows everything, and firewall rules that block AI bots before they even read the file.
- Read the file. Search for each search bot's name. No mention and a permissive "*" group means allowed.
- Test it. A robots.txt checker tells you, URL by URL, whether a given user agent may fetch it.
- Check your CDN or host. Cloudflare and some hosts offer AI bot blocking switches. A block there overrides a perfect robots.txt. Look for "AI crawlers" or "bot management" settings.
- Check your logs. If you see no request at all from OAI-SearchBot over several weeks, something upstream is blocking it. OpenAI publishes the IP ranges of its bots (openai.com/searchbot.json) so you can verify a visit is genuine.
- Check the result in the answers. A clean robots.txt is a door, not a recommendation. Then work on being cited, as I explain in how to rank in ChatGPT.
Do AI companies have to respect robots.txt?
The major companies say they do for their crawlers, and regulators increasingly treat robots.txt as a meaningful opt-out signal. OpenAI, Anthropic and Perplexity document robots.txt support for their crawling bots, with exceptions for user-initiated fetches. Anthropic adds that its bots do not try to bypass CAPTCHAs.
In Europe, France's data protection authority, the CNIL, wrote in its guidance on web scraping for AI that developers relying on legitimate interest should exclude sites that object to scraping through robots.txt or CAPTCHAs, and that without this, processing cannot meet people's reasonable expectations (CNIL, focus sheet on web scraping). That gives the file real weight, but it remains a request, not a lock: a crawler that ignores it is not technically stopped.
So, which AI crawlers should robots.txt allow?
Allow the AI search bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and Googlebot so AI answers can cite you, and decide separately whether to block the training bots (GPTBot, ClaudeBot, Google-Extended, CCBot), which has no documented effect on today's AI search. Blocking Google-Extended does not remove you from AI Overviews, user fetchers may ignore robots.txt, and a firewall rule can undo a perfect file. Check all three layers once, then focus on being cited.
Once the door is open, see whether the AIs actually walk in and recommend you: track your AI mentions with Sorank (plans on the pricing page).
Sources
- OpenAI, "Overview of OpenAI crawlers": OAI-SearchBot, GPTBot, ChatGPT-User.
- Anthropic, "Does Anthropic crawl data from the web": ClaudeBot, Claude-User, Claude-SearchBot.
- Perplexity, "Perplexity crawlers": PerplexityBot and Perplexity-User.
- Google, common crawlers: Googlebot and Google-Extended.
- IETF, RFC 9309, Robots Exclusion Protocol: the robots.txt standard.
- CNIL, focus sheet on web scraping: robots.txt as an opt-out signal.
- Cloudflare, 1 July 2025: AI crawlers blocked by default.
- Sorank Data, snapshot of 2 November 2026: links cited per answer by each AI.
FAQ
Does blocking GPTBot remove my site from ChatGPT?
No. GPTBot is OpenAI's training crawler. ChatGPT search relies on OAI-SearchBot, which is a separate user agent. Blocking GPTBot keeps your content out of future training; blocking OAI-SearchBot removes you from ChatGPT search answers.
Does blocking Google-Extended remove me from AI Overviews?
No. Google states that Google-Extended does not impact a site's inclusion in Google Search nor its ranking. AI Overviews and AI Mode are part of Search. To opt out of them, use the Search Console control for generative AI features or snippet controls.
Should I block AI crawlers to protect my content?
Block training bots (GPTBot, ClaudeBot, Google-Extended, CCBot) if you do not want your content used for future models. Keep search bots allowed if you want AI answers to cite and link to you. For truly private content, use logins: robots.txt is a request, not access control.
Continue on AI visibility: all articles on the blog