Guides

AI crawlers and robots.txt

How to control AI crawlers with robots.txt: GPTBot, ClaudeBot, Google-Extended and related tokens; Allow vs Disallow; training vs retrieval; and how to check your file.

AI products crawl the web with distinct user-agent tokens. Some collect content that may be used for model training; others power search, citations, or user-triggered fetches. robots.txt is the standard way vendors document for expressing Allow or Disallow preferences — with important caveats. This guide summarizes what major vendors publish and how to check your own file with the free AI crawler checker.

Training vs retrieval vs user-triggered fetches

Vendor docs often separate three jobs. The exact wording differs by company, but the split is useful when writing rules:

OpenAI documents that each setting is independent: you can allow OAI-SearchBot (to appear in ChatGPT search) while disallowing GPTBot (to indicate content should not be used for training foundation models). Treat other vendors the same way — read each token's purpose before copying a blanket Disallow: /.

Notable tokens (from vendor documentation)

TokenVendorDocumented role (short)
GPTBotOpenAICrawl that may be used to train generative AI foundation models
OAI-SearchBotOpenAISurfaces sites in ChatGPT search features
ChatGPT-UserOpenAIUser actions in ChatGPT / Custom GPTs; not an automatic crawl
ClaudeBotAnthropicCollects web content that could contribute to model training
Claude-SearchBot / Claude-UserAnthropicSearch indexing vs fetches for user questions
Google-ExtendedGoogleControl token for Gemini training / grounding use; Google documents it as not a separate crawler and not a Search ranking signal
Applebot-ExtendedAppleControl token for Apple foundation-model training (does not crawl itself)
PerplexityBot / CCBot / Mistral tokensVariousSearch/index or training roles — see each vendor's robots page

Always prefer the vendor's current documentation over third-party lists. Tokens and purposes change; unverified names (historically floated online without a matching vendor page) should not be treated as official.

How Allow and Disallow apply

Matching follows the same robots rules Google documents for Search: crawlers pick the most specific matching user-agent group; within that group the longest matching path wins; and when allow and disallow are equally specific, the less restrictive allow wins. Paths are case-sensitive. A group for User-agent: GPTBot is not merged with User-agent: * — if you create a named group, put every rule that bot should obey inside it.

Example: block training-oriented crawls site-wide, leave search bots to the default group.

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: *
Allow: /

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

That is an illustration, not a recommendation. Blocking search-oriented bots has different product consequences than blocking training tokens. Review the robots.txt checklist for location, status codes, size limits, and precedence details that apply to every crawler — AI or otherwise.

Writing rules without breaking Search

AI-related tokens are separate from Googlebot for Google Search. Disallowing Google-Extended does not block Googlebot from crawling for Search, according to Google's crawler documentation. Likewise, OpenAI documents that GPTBot and OAI-SearchBot are independent controls. Before you paste a viral "block all AI" snippet, decide which products you want to keep for discovery versus which training-oriented crawls you want to refuse.

Practical checklist when editing robots.txt for AI bots:

Common Crawl's CCBot is often included in AI discussions because its open web archive is reused by many researchers and model builders. Blocking CCBot follows the same robots syntax; it does not by itself control every downstream model that might have used Common Crawl data in the past.

Limits of robots.txt for AI

Check your site

Paste your homepage into the free AI crawler checker. It fetches only your public /robots.txt, evaluates a curated list of vendor-documented AI-related tokens against Allow/Disallow rules, and shows which are allowed at /. Pair that with the Crawl Budget Snapshot for a broader robots and sitemap read, or the redirect checker if chains are eating crawl capacity. More technical SEO explainers are on the guides index, including crawl budget.

Auditing many sites at once (a client list, competitors, or your own portfolio)? The AI Crawler & robots.txt Readiness Audit on Apify runs these robots.txt checks (plus sitemap and llms.txt) in bulk, for up to 1,000 domains per run, and returns one dataset row per domain. It costs $0.01 per domain audited.

/llms.txt is a separate, proposed file (see llmstxt.org) that offers AI tools a curated list of your key pages. It doesn't control crawler access; robots.txt still does that. If you publish one, the llms.txt Validator & Generator on Apify scores it against the format and checks its links, or drafts one from your sitemap ($0.004 per site validated and $0.02 per llms.txt draft generated).

Check your own site

The free Crawl Budget Snapshot fetches a site's public robots.txt and sitemaps and gives a quick crawl-waste score with suggested fixes. It is a starting point, not a replacement for Search Console or log analysis.

References

More guides