Skip to content
Glossy Data

AI crawlers and robots.txt: which AI bots to allow and which to block

Most sites want AI assistants to find and cite them, but not every AI bot does the same job. Here is how to tell search crawlers from training crawlers, and how to write robots.txt rules that match your intent.

Last reviewed 8 min readBy the Glossy Data team · how we measure

Key takeaways

  • AI bots do three different jobs: build an AI search index, collect training data, or fetch a page because a user asked. Decide on each separately.
  • If you want to be cited, allow the search bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and never block Googlebot or Bingbot.
  • Blocking training bots such as GPTBot, ClaudeBot or CCBot is a licensing choice. Operators say it does not remove you from their search answers.
  • robots.txt is voluntary and is not access control. Cloudflare and other edge settings can block bots your robots.txt allows, so check both.

Which AI crawlers should you allow?

For most businesses the answer is: allow the AI search crawlers, keep classic search crawlers open, and make a separate, deliberate decision about training crawlers. Search crawlers are what let ChatGPT, Claude and Perplexity cite and link to your pages. OpenAI says sites that opt out of OAI-SearchBot will not be shown in ChatGPT search answers[1], and Anthropic says blocking Claude-SearchBot reduces your visibility in its search results[2].

Training crawlers are different. OpenAI describes disallowing GPTBot as a signal that your content should not be used for training, and states that each of its settings is independent of the others[1]. So a publisher can say no to training and yes to being found. Whether to allow training is a content-licensing question, not a visibility tactic, and reasonable sites choose differently.

Before you change anything, see what your site currently allows. The free AI crawler checker reads your robots.txt and response headers for 21 AI and search bots and flags Cloudflare's AI-bot blocking.

The main AI user agents and what each one does

Each operator publishes its own list of tokens. The table groups the ones most sites meet by purpose, using each operator's own description. The purpose matters more than the company name, because one company often runs several bots with very different effects.

AI and search user agents by purpose (operator documentation, checked October 2026)
robots.txt tokenOperatorPurposeWhat blocking it does
OAI-SearchBotOpenAIAI search indexPages are not shown in ChatGPT search answers[1]
GPTBotOpenAIModel trainingSignals content should not be used for training[1]
ChatGPT-UserOpenAIUser-triggered fetchOpenAI says robots.txt rules may not apply[1]
Claude-SearchBotAnthropicAI search indexReduces visibility in Claude's search results[2]
ClaudeBotAnthropicModel trainingFuture content is excluded from training data[2]
Claude-UserAnthropicUser-triggered fetchClaude can't retrieve your page when a user asks[2]
PerplexityBotPerplexityAI search indexPages can't be indexed to surface and link in Perplexity results[3]
Perplexity-UserPerplexityUser-triggered fetchPerplexity says it generally ignores robots.txt[3]
GooglebotGoogleSearch engineRemoves you from Google Search and all its features[4]
Google-ExtendedGoogleControl token (no crawler)Opts out of Gemini training and grounding, not Search[4]
Applebot-ExtendedAppleControl token (no crawler)Opts out of Apple model training; Siri and Spotlight unaffected[5]
CCBotCommon CrawlOpen web archiveKeeps pages out of the Common Crawl dataset[6]
Meta-ExternalAgentMetaTraining and indexingStops this crawler; Meta says it respects robots.txt[7]
Bytespider, AmazonbotByteDance, AmazonAI crawlersListed by Cloudflare among known AI crawlers it disallows on request[11]

Search, training and user-triggered bots: why the split matters

The split matters because each kind of bot has a different cost and benefit for you. Treat them as three separate decisions.

  • Search and indexing bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot) feed the index an assistant searches when it answers. Blocking them is the most direct way to disappear from AI answers that cite sources.
  • Training bots (GPTBot, ClaudeBot, CCBot, Meta-ExternalAgent) collect pages for future models. Blocking them affects what later models learn, not whether today's assistants can cite you.
  • User-triggered fetchers (ChatGPT-User, Claude-User, Perplexity-User, Meta-ExternalFetcher) load one page because a person asked. OpenAI, Perplexity and Meta say these may not follow robots.txt the way crawlers do[1][3][7]; Anthropic says its bots honor robots.txt and the non-standard Crawl-delay rule[2].

A typical choice for an online store in Mexico or a B2B software company in Germany is to welcome search and user fetches and to block training. A news publisher with licensing deals might block training and also limit search bots to some sections. A local clinic in Australia probably wants everything open. There is no single right answer, only a deliberate one.

Sample robots.txt configurations

Pick the pattern that matches your intent, then adapt the paths. Each group starts with one or more User-agent lines; a bot follows the most specific group that names it and ignores the * group in that case. Keep your existing rules for other bots and your Sitemap line.

1. Allow AI search, block AI training (the common choice)

# AI search and user fetches: allowed
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /

# Model training: blocked
# (Google-Extended also covers Gemini grounding; see the note below)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: Bytespider
Disallow: /

# Everyone else, including Googlebot and Bingbot
User-agent: *
Allow: /

Sitemap: https://www.example.com/sitemap.xml

One judgment call in this pattern: Google says Google-Extended controls both Gemini training and grounding, meaning content from the Search index given to the model at prompt time[4]. If being used in Gemini answers matters more to you than opting out of training, leave Google-Extended out of the blocked group.

2. Allow everything

User-agent: *
Allow: /

Sitemap: https://www.example.com/sitemap.xml

3. Keep AI bots out of one section only

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Disallow: /members/
Disallow: /research/paid/

User-agent: *
Disallow: /members/

How robots.txt rules are matched (RFC 9309)

robots.txt has been an IETF standard since September 2022, published as RFC 9309[8]. A few of its rules explain most of the surprises people hit with AI bots:

  • The file must live at /robots.txt on each host, so shop.example.com needs its own file[8].
  • User-agent matching is case-insensitive. If several groups name the same bot, their rules are combined; if none names it, the * group applies[8].
  • When Allow and Disallow both match a path, the longest (most specific) rule wins, and an equal tie goes to Allow[8].
  • Crawlers should not use a cached copy for more than 24 hours, and parsers must handle at least 500 KiB[8]. OpenAI says its systems can take about 24 hours to reflect a change[1].

The standard also says plainly that its rules are not a form of access authorization[8]. Compliance is voluntary. The operators above say their crawlers honor it, but anyone can send a request that claims to be GPTBot. If you need a hard block, enforce it at your server or CDN, and verify bots by IP where the operator publishes ranges, as Common Crawl does[6]. Anthropic advises against IP blocking alone, because it can stop its bots reading robots.txt at all[2].

Cloudflare's default AI-bot blocking and how to adjust it

If your site runs on Cloudflare, your robots.txt may not be the whole story. On July 1, 2025 Cloudflare announced that new domains would block AI crawlers by default, with owners asked at sign-up whether to allow them[9]. That means a robots.txt that welcomes OAI-SearchBot can sit behind an edge rule that refuses it.

The setting has since changed shape. Cloudflare's documentation says the legacy Block AI bots toggle is deprecated from September 15, 2026, replaced by AI bot policies with separate choices for Search, Training and Agent bots. Under the new defaults for new domains, search stays allowed while training and agent bots are blocked on pages that show ads[10]. Each policy can block on all pages, block only on pages with ads, or allow[10].

  1. In the Cloudflare dashboard, open your domain, then Security Settings and Configure AI bot policies (older accounts may still show Block AI bots)[10].
  2. Set Search to allow if you want to be cited. Set Training and Agent to match your licensing choice[10].
  3. Check whether managed robots.txt is on. Cloudflare prepends its own directives, including Content Signals and Disallow lines for known training crawlers, to your existing file[11].
  4. Open AI Crawl Control to see which AI services actually visit, allow or block individual crawlers, and track which ones follow your robots.txt. Cloudflare says it is available on all plans[12].
  5. Run the AI crawler checker again to confirm the served robots.txt and headers now match your intent.

A five-minute audit checklist

Most crawler problems come from a few predictable places. Work through these in order:

  • Fetch https://yourdomain/robots.txt directly and read what is actually served, not what is in your repo or CMS.
  • Look for a blanket User-agent: * plus Disallow: / left over from a staging site.
  • Confirm OAI-SearchBot, Claude-SearchBot and PerplexityBot are allowed if you want citations.
  • Check every subdomain that serves content, such as help. or docs..
  • Check X-Robots-Tag headers and meta robots tags: noindex keeps pages out of search indexes regardless of robots.txt.
  • On Cloudflare or another CDN, check AI-bot and bot-challenge settings, which can return a 403 to bots robots.txt allows.

See which of 21 AI and search bots your robots.txt and headers allow, and whether Cloudflare is blocking AI bots at the edge. Free, no sign-up.

Check your AI crawler access

Access is only the entry ticket. Being crawlable does not mean an assistant will recommend you; that depends on what it finds about you across the web. To see whether ChatGPT, Google AI Overviews, Google AI Mode, Gemini, Perplexity and Claude actually mention you, run the free AI visibility checker, and read how to get recommended by ChatGPT for the content side. On paid plans, the Source Map shows which sites engines cite for your questions.

Frequently asked questions

No. OpenAI treats GPTBot (training) and OAI-SearchBot (ChatGPT search) as independent settings. To stay in ChatGPT search answers, keep OAI-SearchBot allowed.

No. Google says Google-Extended does not affect inclusion in Google Search. AI Overviews and AI Mode are part of Search, so they follow Googlebot and Search controls such as nosnippet and noindex.

No. RFC 9309 says robots.txt rules are not access authorization, so compliance is voluntary. Major operators say their crawlers honor it, but some user-triggered fetchers may not, and impostors can fake any user agent.

The standard says crawlers should not rely on a cached copy for more than 24 hours, and OpenAI says its systems can take about a day to adjust. Plan for a delay of up to a day or so.

Possibly. Cloudflare has blocked AI crawlers by default for new domains since July 2025, and its newer AI bot policies block some bot types on pages with ads. Check your dashboard settings and test your site with a crawler checker.

Sources

  1. Overview of OpenAI crawlers · OpenAI · checked Oct 2026
  2. Does Anthropic crawl data from the web, and how can site owners block the crawler? · Anthropic · checked Oct 2026
  3. Perplexity crawlers · Perplexity · checked Oct 2026
  4. List of Google's common crawlers · Google · updated Oct 2026
  5. About Applebot · Apple · checked Oct 2026
  6. CCBot · Common Crawl · checked Oct 2026
  7. Meta web crawlers · Meta · checked Oct 2026
  8. RFC 9309: Robots Exclusion Protocol · IETF (Koster, Illyes, Zeller, Sassman) · Sep 2022
  9. Cloudflare just changed how AI crawlers scrape the Internet-at-large · Cloudflare · Jul 2025
  10. Block AI bots · Cloudflare Docs · updated Jul 2026
  11. Managed robots.txt · Cloudflare Docs · updated Oct 2026
  12. AI Crawl Control · Cloudflare Docs · updated Aug 2026
  13. AI features and your website · Google Search Central · checked Oct 2026

Spotted something out of date? Tell us at hello@glossydata.com and we'll fix it.

Does AI recommend you? Check your website free.

Free website check · No card needed · Full AI tracking on paid plans

  • Free
  • Verify your email
  • Free limited report