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.

Robots.txt for AI crawlers: GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and Google-Extended explained
Contents
  1. What kinds of AI crawlers are there?
  2. Which AI crawlers should you know?
  3. Which AI crawlers should you allow?
  4. What does a good robots.txt look like?
  5. How do you check you are not blocking AI search?
  6. Do AI companies have to respect robots.txt?
  7. FAQ

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.

The three families of AI crawlers Training feeds future models GPTBot ClaudeBot Google-Extended CCBot Block: content kept out of future training Search feeds AI answers with links OAI-SearchBot Claude-SearchBot PerplexityBot Googlebot Block: you disappear from AI answers User fetch a person asked for a page ChatGPT-User Claude-User Perplexity-User robots.txt may not apply (per vendors) Classification from the official documentation of OpenAI, Anthropic, Perplexity, Google and Common Crawl.
The three families of AI crawlers and the effect of blocking each. Sources: OpenAI, Anthropic, Perplexity, Google and Common Crawl documentation, checked on 8 November 2026.

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 agentCompanyRole (official documentation)If you block it
OAI-SearchBotOpenAISurfaces websites in ChatGPT search featuresNot shown in ChatGPT search answers
GPTBotOpenAITraining of generative AI foundation modelsContent kept out of future training
ChatGPT-UserOpenAIUser actions in ChatGPT and custom GPTsrobots.txt "may not apply", says OpenAI
Claude-SearchBotAnthropicImproves search result quality for usersMay reduce visibility in Claude's search answers
ClaudeBotAnthropicCollects content that may be used for trainingFuture content excluded from training
Claude-UserAnthropicFetches pages when a user's question needs themClaude cannot read your page on request
PerplexityBotPerplexitySurfaces and links websites in Perplexity results; not used for trainingNot surfaced in Perplexity search
Perplexity-UserPerplexityFetches pages for user actions; "generally ignores robots.txt rules"Little effect via robots.txt
GooglebotGoogleGoogle Search, including AI Overviews and AI ModeOut of Google entirely
Google-ExtendedGoogleControl token for Gemini training and grounding in Gemini apps and Vertex AINo effect on Google Search or ranking
CCBotCommon CrawlOpen web archive, widely used to build AI datasetsNot in future Common Crawl archives
Sources: OpenAI, Anthropic, Perplexity, Google and Common Crawl crawler pages, checked on 8 November 2026.

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.

Links cited per answer, by AI Gemini 9.21 Grok 6.72 ChatGPT 3.30 Claude 2.99 Perplexity 2.74
Average number of cited links per answer, all domains, August 2025 to October 2026. Samples: ChatGPT 148,295, Gemini 148,287, Perplexity 118,647, Claude 56,291, Grok 26,638 answers. Source: sorank.com/data, snapshot of 2 November 2026.

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
  1. 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.
  2. One file per host. blog.example.com needs its own robots.txt; the one on www does not cover it.
  3. Delays. OpenAI says changes take about 24 hours to be picked up.
  4. 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.

  1. Read the file. Search for each search bot's name. No mention and a permissive "*" group means allowed.
  2. Test it. A robots.txt checker tells you, URL by URL, whether a given user agent may fetch it.
  3. 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.
  4. 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.
  5. 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.

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

  1. OpenAI, "Overview of OpenAI crawlers": OAI-SearchBot, GPTBot, ChatGPT-User.
  2. Anthropic, "Does Anthropic crawl data from the web": ClaudeBot, Claude-User, Claude-SearchBot.
  3. Perplexity, "Perplexity crawlers": PerplexityBot and Perplexity-User.
  4. Google, common crawlers: Googlebot and Google-Extended.
  5. IETF, RFC 9309, Robots Exclusion Protocol: the robots.txt standard.
  6. CNIL, focus sheet on web scraping: robots.txt as an opt-out signal.
  7. Cloudflare, 1 July 2025: AI crawlers blocked by default.
  8. 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.

Thibault Besson-Magdelain
Thibault Besson-Magdelain

Founder of Sorank, the SEO and GEO platform that tracks how ChatGPT, Gemini, Perplexity, Claude and Grok talk about brands. Before Sorank, I ran an SEO agency that served more than 100 clients. Based in Budapest.

A robots.txt opens the door. Find out whether AI assistants walk through it and recommend you.

See Sorank plans