Skip to content

AI search9 min read

AI crawlers in robots.txt: search bots vs training bots

What GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and Google-Extended do, what blocking each one affects, and why your CDN may override robots.txt.

By the analyser.dev team

"Should we block AI bots?" is usually asked as one question. It's really two. Some AI crawlers collect text to train future models. Others fetch pages so an assistant can answer a question right now, often with a link back to you. Blocking the first kind is a reasonable stance on how your content gets used. Blocking the second kind removes you from a growing source of traffic. Most robots.txt files we see don't distinguish between them, either blocking everything with "AI" in the name or nothing at all.

This guide goes through the major crawlers, what each one does according to its operator, what blocking it actually affects, and a robots.txt you can adapt. At the end is the part most guides skip: your CDN may be blocking these bots regardless of what robots.txt says.

A caveat before the list. These details come from each company's published documentation, which changes, sometimes quietly. Check the operator's page before making a decision that matters to you, and treat anything below marked as uncertain accordingly.

Three kinds of AI crawler

  • Training crawlers gather content for model training. Blocking them affects what future models know about you without searching. It doesn't affect live answers.
  • Search crawlers build the index an AI assistant searches when it answers a question. Blocking them makes you less likely to be found and cited in those answers.
  • User-triggered fetchers load a specific page because a person asked the assistant about it, for example by pasting your URL into a chat. Blocking them means the assistant can't read the page the user is asking about.

The crawlers, by operator

OpenAI

  • GPTBot: training. Blocking it tells OpenAI not to use your content to train its models.
  • OAI-SearchBot: search. It powers ChatGPT's search features. OpenAI says sites that block it won't be shown in ChatGPT search answers, though they may still appear as plain navigational links.
  • ChatGPT-User: user-triggered. It fetches pages when a ChatGPT user or custom GPT asks for them. OpenAI's documentation has said that because these requests are initiated by a user, robots.txt rules may not apply to them.

The three are independent: you can block GPTBot and allow OAI-SearchBot, and OpenAI says it respects that split.

Anthropic

  • ClaudeBot: training. Collects public web content that may be used to train Claude models.
  • Claude-SearchBot: search. Indexes content to improve the quality of Claude's search results. Blocking it may reduce your visibility in Claude's answers.
  • Claude-User: user-triggered. Fetches pages when a Claude user asks about them. Blocking it prevents Claude from retrieving your content for those questions.

Anthropic states that its bots honour robots.txt, including these per-agent rules.

Perplexity

  • PerplexityBot: search. Perplexity says it is used to surface and link sites in its search results and not to train foundation models.
  • Perplexity-User: user-triggered. Perplexity says that because these fetches are made on a user's behalf, this agent generally ignores robots.txt.

In 2025 Cloudflare publicly accused Perplexity of using undeclared crawlers, with generic browser user agents, to reach sites that had blocked its declared ones. Perplexity disputed that characterisation. Whatever you conclude, it's a reminder that robots.txt is a request that well-behaved crawlers choose to follow, not an access control.

Google

  • Googlebot: Google Search, including AI Overviews and AI Mode. Blocking it removes you from Google Search entirely, so nobody should do it to opt out of AI features.
  • Google-Extended: not a crawler but a robots.txt token. It controls whether content Google has already crawled may be used to train Gemini models and to ground Gemini answers outside Search. Google states it does not affect inclusion or ranking in Google Search, and it does not opt you out of AI Overviews. Those are governed by Googlebot and by snippet controls such as nosnippet.

Apple

  • Applebot: search for Siri, Spotlight and Safari suggestions.
  • Applebot-Extended: like Google-Extended, a token rather than a crawler. Disallowing it tells Apple not to use content Applebot collected to train its foundation models. It doesn't remove you from Apple's search features.

Others you'll meet in logs

  • CCBot (Common Crawl) builds a free, public web archive. It isn't an AI company's crawler, but Common Crawl data appears in the training sets of many models, so blocking CCBot is a common way of opting out of training broadly. It also keeps you out of a dataset researchers rely on.
  • Meta-ExternalAgent (Meta) crawls for AI training and Meta's AI products. Meta lists separate agents for link previews.
  • Bytespider (ByteDance) is generally described as a training crawler. There have been widespread reports of it not honouring robots.txt; we can't verify those either way.
  • Amazonbot (Amazon) and DuckAssistBot (DuckDuckGo) fetch content for their assistants' answers.
  • Bingbot feeds both Bing and Copilot. Microsoft hasn't introduced a separate AI user agent; it has pointed site owners at meta tags instead (nocache and noarchive), and those rules have changed over time, so check Bing's current guidance.

A robots.txt that separates search from training

Here is a common middle ground: allow everything that sends visitors, block training. Adapt it, don't copy it blindly.

# Search and user-triggered AI agents: 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: /
Disallow: /admin/
Disallow: /cart/

# Training: blocked
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Meta-ExternalAgent
User-agent: Bytespider
Disallow: /

# Everyone else
User-agent: *
Disallow: /admin/
Disallow: /cart/

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

Note the repeated Disallow: /admin/. This catches a lot of people: a crawler follows only the most specific group that names it. Once you add a User-agent: OAI-SearchBot group, OAI-SearchBot ignores everything under User-agent: *. If your private paths are listed only in the wildcard group, you've just opened them to every bot you named. Repeat the rules that should apply to everyone in each group.

Grouping several User-agent lines over one set of rules is valid under the robots.txt standard (RFC 9309), and the major crawlers support it. If you'd rather be conservative, give each agent its own group.

If you'd prefer to allow training too, you don't need any AI-specific lines at all; the wildcard group applies. If you want to block everything AI-related, remember that blocking the search agents trades away citations and referral traffic for that choice.

The WAF caveat: robots.txt isn't the whole story

robots.txt says what you'd like crawlers to do. Your CDN and firewall decide what they can do. Increasingly these disagree, and the CDN wins.

Several CDNs now offer a one-click "block AI bots" setting, and from mid-2025 Cloudflare started asking new customers whether to allow AI crawlers, with blocking as the default. These settings are often switched on during setup and forgotten. Bot-protection challenges can have the same effect without anyone intending it: a JavaScript challenge page is a dead end for a crawler that doesn't run JavaScript.

The result is a site whose robots.txt carefully allows OAI-SearchBot while every request from it receives a 403. Nothing in your analytics will tell you, because the requests never reach your application.

To check, request a page with each crawler's user agent and compare the response with a normal browser request:

for ua in "OAI-SearchBot/1.3" "Claude-SearchBot/1.0" "PerplexityBot/1.0"; do
  printf "%-22s " "$ua"
  curl -s -o /dev/null -w "%{http_code}\n" \
    -A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; $ua" \
    https://example.com/
done

This isn't perfect. Some CDNs verify crawlers by IP range, so a fake user agent from your laptop may be treated differently from the real crawler, in either direction. A 403 for the spoofed agent still tells you a rule matches that user agent, which is worth investigating in your CDN's bot settings.

analyser.dev runs this check on every scan: it reads your robots.txt rules for each AI crawler, then fetches the page once with each crawler's user agent and flags 401, 403, 406, 429, 451 and 503 responses, as well as challenge pages, separately from robots.txt blocks. Training-only blocks are reported as information rather than a failure, because that's a legitimate choice.

Deciding

If your business depends on people finding you, allow the search and user-triggered agents. Make the training decision on its own merits. If you publish content that is itself the product, such as journalism, courses or datasets, blocking training is a defensible default. If you sell something else and want models to know you exist, allowing it is equally defensible. Whatever you choose, check that your CDN agrees with your robots.txt.

And once crawlers are allowed in, make sure there's something for them to read: most of them don't run JavaScript.

See how your site does in about a minute

Free, no account needed for the scores and top fixes.