Short verdict: Separate model-training bots (GPTBot, ClaudeBot, Google-Extended, CCBot) from AI search bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot) in /robots.txt, and enforce rules against non-compliant scrapers at the CDN edge rather than bloating robots.txt.

Website owners often ask a blunt question: should we block all AI bots? A blanket block made sense when every AI crawler simply scraped pages to train foundation models. Today, major AI labs operate separate user-agents for offline model training and for live search citations. Blocking both by mistake can cut your pages out of AI-assisted search referrals while still failing to stop scrapers that ignore robots.txt.

The practical approach is to distinguish training crawlers from search crawlers, pick a clear /robots.txt policy, and handle non-compliant traffic at the network edge.

Traffic routing diagram separating search crawlers, declared AI training crawlers and non-compliant scrapers across robots.txt and CDN edge rules

Separate training crawlers from search crawlers

The table below separates nine major AI user-agents and control tokens tracked in the open ai.robots.txt registry, which documents 210 crawlers (65 of them recorded as respecting robots.txt directives as of November 2026).

User-Agent Role Operator Documented purpose & practical effect
GPTBot Training OpenAI Crawls web pages to train OpenAI models; blocking does not block ChatGPT search
ClaudeBot Training Anthropic Crawls data to train Anthropic models; live user-triggered fetches use Claude-User
Google-Extended Training Google Product control token applied downstream to Googlebot crawls (not a separate user-agent in logs): opts out of Gemini training and Gemini/Vertex AI grounding without affecting Googlebot rankings or Search AI Overviews / AI Mode
Applebot-Extended Training Apple Opts out of Apple generative AI model training without blocking Applebot search
Meta-ExternalAgent Training Meta Crawls public web content for model training and improvement
CCBot Training Common Crawl Builds open web corpora widely ingested into third-party AI training datasets
OAI-SearchBot Search OpenAI Indexes and links pages inside ChatGPT search answers
Claude-SearchBot Search Anthropic Indexes pages for Claude search results without feeding model training
PerplexityBot Search Perplexity Indexes pages for Perplexity search citations

Notice the crucial separation: Google-Extended is a control token for Gemini and Vertex AI applied to Googlebot crawls (it leaves Google Search rankings and Search generative features such as AI Overviews governed by Googlebot and meta tags like nosnippet), blocking GPTBot leaves ChatGPT search links (OAI-SearchBot) active, and blocking ClaudeBot leaves search indexing (Claude-SearchBot) and on-demand user fetches (Claude-User) intact.

Three ready-to-use robots.txt templates

Disallow major model-training crawlers while allowing AI search and standard search engines:

# Disallow AI model-training crawlers
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: CCBot
Disallow: /

# Allow AI search and citation crawlers
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /

# Standard search engines
User-agent: *
Allow: /

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

Use this if your content policy requires opting out of both model training and AI answer engines while keeping traditional search engines (Googlebot, Bingbot):

User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ClaudeBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: CCBot
Disallow: /

User-agent: *
Allow: /

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

3. Open discovery policy (explicitly allow all documented bots)

Use this on open reference projects where wide citation and corpus inclusion are intentional:

User-agent: *
Allow: /

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

Where robots.txt stops working (and common pitfalls)

Under RFC 9309, robots.txt is a voluntary protocol, not an access control mechanism. Well-documented crawlers from major labs check and obey those rules, whereas aggressive scrapers and spoofed user-agents routinely ignore /robots.txt altogether.

Avoid three common pitfalls:

  • Do not list private paths inside robots.txt: The file itself is public; anyone can fetch /robots.txt to discover URLs you told bots not to visit. Protect private routes with real authentication.
  • Do not break wildcard syntax: Remember that under RFC 9309, once a crawler matches a specific User-agent: group (such as User-agent: GPTBot), it obeys only the directives in that group and ignores the fallback User-agent: * block. Repeat any shared rules inside specific groups if needed.
  • Move enforcement against unverified scrapers to the CDN edge: Instead of pasting hundreds of obscure bot names into robots.txt, use edge controls such as Cloudflare’s AI Crawl Control or simple WAF rate-limiting rules to challenge or block abusive crawlers before they hit your origin.

Verify the live robots.txt after deployment

Whenever you publish changes or migrate a static site, confirm that /robots.txt returns HTTP 200, text/plain, and your intended directives directly (without redirecting through an HTML page or hitting a 404 fallback):

curl --silent --show-error --include https://example.com/robots.txt | head -n 30

If you host behind a CDN with aggressive caching, purge /robots.txt after editing and re-run the check so crawlers fetch the current policy on their next pass.