How to block AI training crawlers without disappearing from AI answers

Written 30 July 2026 · based on our measurement of 76 domains

AI crawlers come in two kinds, and the distinction decides whether blocking them costs you anything.

Training crawlers collect text to train models. Blocking them costs you no visibility whatsoever.

Answer crawlers fetch pages so an assistant can cite them in a reply. Blocking these removes you from AI answers — usually the opposite of what someone blocking "AI bots" intends.

The rules below block the first group and leave the second alone. Several other guides make this same distinction; what is added here is measured data on what sites actually do, and two caveats most lists omit — see below.

Copy this into robots.txt

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: anthropic-ai
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Bytespider
User-agent: meta-externalagent
User-agent: Amazonbot
User-agent: Diffbot
Disallow: /

# Deliberately NOT blocked — these fetch pages in order to cite you:
# OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User,
# PerplexityBot, Perplexity-User

Put it at /robots.txt, keep your existing rules, and check the result with the checker or by fetching the file yourself.

What each crawler actually does

CrawlerOperatorPurposeBlock?
GPTBotOpenAICollects content for model trainingSafe to block
ClaudeBotAnthropicCollects content for model trainingSafe to block
anthropic-aiAnthropicOlder token, still seen in the wildSafe to block
Google-ExtendedGoogleControls Gemini training use. Does not affect Google Search rankingSafe to block
Applebot-ExtendedAppleTraining opt-out. Distinct from Applebot, which is searchSafe to block
CCBotCommon CrawlPublic crawl corpus, widely used as training dataSafe to block
BytespiderByteDanceTraining data collectionSafe to block
meta-externalagentMetaTraining data collectionSafe to block
AmazonbotAmazonCrawling for Amazon services incl. AlexaYour call
DiffbotDiffbotCommercial structured-data extractionYour call
OAI-SearchBotOpenAIIndexes pages for ChatGPT search resultsDo not block
ChatGPT-UserOpenAIFetches a page because a user asked about itDo not block
Claude-SearchBotAnthropicIndexes pages for use in Claude's answersDo not block
Claude-UserAnthropicFetches a page on a user's behalfDo not block
PerplexityBotPerplexityIndexes pages for citation in answersDo not block
Perplexity-UserPerplexityFetches a page on a user's behalfDo not block

Operator documentation: OpenAI · Anthropic · Google · Apple · Common Crawl. Check these before trusting any list, including this one — tokens change.

The mistake worth avoiding. Blocking Google-Extended does not remove you from Google Search, and blocking Googlebot does. They are separate tokens with separate effects, and conflating them is the most expensive error available on this page.

What we actually found when we measured this

Across 76 B2B SaaS domains, measured on 30 July 2026:

Two caveats most crawler lists leave out

Some AI browsing does not identify itself at all. OpenAI's ChatGPT Atlas browser reportedly sends a standard Chrome user-agent with no distinguishing token, which means robots.txt cannot address it — it is indistinguishable from an ordinary visitor.

Bing Copilot rides on Bingbot. You cannot block Copilot without also blocking Bing Search, because it is the same crawler. If someone tells you to "block all AI", ask them what that costs in Bing.

What robots.txt cannot do

It is a request, not a control. Compliance is voluntary. A crawler that ignores it is not prevented by it, and nothing in a text file changes that.

Enforcement happens at the server or CDN. If you need a real block rather than a stated preference, that is a firewall or bot-management rule returning 403. In our edge probe, 3 of 74 domains enforced this way. Note that CDN rules are invisible in your own robots.txt — so your stated policy and your actual behaviour can silently diverge.

It does not remove anything already collected. A model trained before you added the rule is unaffected, and archives like Common Crawl retain prior snapshots.

If you want to block everything, including answer crawlers

That is a legitimate choice — just make it knowingly. Add the six answer crawlers to the list above. You will lose eligibility for citation in ChatGPT, Claude and Perplexity answers, and you will not get a warning when it happens, because there is no report anywhere that tells you that you were excluded.