Skip to main content
How to Block or Allow AI Crawlers: GPTBot, ClaudeBot and Others in robots.txt
Technical SEO

How to Block or Allow AI Crawlers: GPTBot, ClaudeBot and Others in robots.txt

See how GPTBot, OAI-SearchBot, ClaudeBot and Google-Extended differ in robots.txt, what training and search rules control, and where they stop.

Matthias RamahiMatthias Ramahi
6 min readOctober 14, 2026Legacy score: 100/100Updated Nov 24, 2026

If you want to limit AI training use, first check what each provider says its robots.txt token controls. Training, search and user-triggered fetches use different tokens. A training rule leaves search crawlers reachable only if you do not block them as well. It does not guarantee citations. robots.txt is not access control and cannot recall copies already collected.

Start with the current robots.txt rules for your site. Then choose which use you want to permit: training, a provider's search index, or a fetch made after a user asks an assistant to open a URL.

The bot name matters because the job differs

Provider documentation separates several functions. Names and policies can change, so check the linked documentation again before deploying a large ruleset.

Provider and tokenPublished purposePractical implication
OpenAI GPTBotCrawls content that may be used to train OpenAI foundation models.Blocking this token is a training preference.
OpenAI OAI-SearchBotFinds websites for ChatGPT search results.Blocking it can prevent a page from appearing as a source in ChatGPT search answers.
OpenAI ChatGPT-UserFetches a page in response to certain user actions.OpenAI says these user-triggered requests may not follow robots.txt and do not determine automatic search inclusion.
Anthropic ClaudeBotCollects web content that could contribute to model development.Anthropic says its bots respect robots.txt; it also supports the non-standard Crawl-delay extension.
Anthropic Claude-SearchBotImproves web-search results in Claude.Blocking it can limit indexing for that search function.
Anthropic Claude-UserRetrieves web content at a user's direction.Anthropic documents this as a separate control from search crawling.
Perplexity PerplexityBotFinds and links websites in Perplexity search results; the provider says it is not used to crawl for foundation-model training.This is the search crawler, not a general training switch.
Perplexity Perplexity-UserFetches a page after a user asks a question.Perplexity says this fetch generally ignores robots.txt because it is user-triggered.
Google Google-ExtendedA robots.txt token, not a separate HTTP crawler. It controls uses of content Google crawls for Gemini model training and grounding in specified Gemini and Vertex AI products.Google says it does not affect Google Search inclusion or rankings. Google Search features such as AI Overviews still use the ordinary Search crawling and indexing controls.

As of November 24, 2026, Google says it plans to support the shared robots.txt training signal in 2027. The current IETF Internet-Draft was published as version -01 on November 16. It describes the policy token __usage_ai-training, but remains an individual Internet-Draft, not an IETF standard or adopted RFC. Anthropic began recognizing the signal on October 30, while rolling support out across its services and regions over time. For Anthropic, explicit ClaudeBot rules take priority over the general signal. Google plans its own support for 2027 and says it intends to treat a training opt-out as a block for Google-Extended when Google-Extended is not explicitly specified. Current OpenAI and Perplexity documentation still describes their provider-specific crawler tokens and does not document support for this shared signal. Rely only on the support each provider documents, and keep the provider-specific rules in place. The draft may change; this is not a universal live control.

The details above are provider statements, not a promise about what every independent crawler does. Google explains that robots.txt controls crawling, not confidentiality or guaranteed de-indexing. A URL blocked from crawling might still be known from links, and a compliant crawler is not the same thing as access control.

The bot names and purposes in the table come from current provider documentation: OpenAI describes its bots by purpose, Anthropic documents its crawlers and fetchers, and Perplexity explains its crawlers. These are provider descriptions, not proof that a request carrying a matching user-agent string really came from that provider.

Example: block selected provider tokens, treat search crawlers separately

The snippet blocks three selected provider tokens. It contains no block for search crawlers; a broader wildcard rule elsewhere in the file could still block them.

textUser-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

CCBot is a separate case. Common Crawl describes it as its own web crawler and says it follows robots.txt. A CCBot rule controls that fetch. Common Crawl makes its archive freely available, so the rule does not control how third parties use copies they already retrieved. Treat CCBot as a separate decision about Common Crawl access, not as a general AI-training switch. Common Crawl documents CCBot and its robots.txt rules.

The snippet expresses an intent; it does not guarantee that the provider will use no previously collected copy. It also does not block every training dataset or every fetcher. Review each provider’s current token and policy list rather than treating this as an exhaustive catalog.

If the goal is to protect only a paid section, block that path for the relevant compliant crawler, but put the real protection behind authentication or an authorization check. A public URL that is merely disallowed in robots.txt is not private. Also inspect any broad rule such as a wildcard group with Disallow slash: a specific block for one bot does not make the rest of the file safe if a wildcard group blocks everyone else.

Do not confuse crawling with indexing or Search snippets

For Google, robots.txt is not the right way to request that an HTML page disappear from Search. If Google cannot crawl a page, it may not see a noindex directive on that page. Use an accessible page with noindex when the aim is to keep it out of the index, or require a login when it must be private. Google's crawler documentation also explains that Google-Extended does not create a separate request in server logs.

An allow rule also does not improve a page's chance of ranking or being cited. It only removes one access barrier for that crawler. The page still needs to be reachable and usable, and the provider decides what it includes in a response. Measure AI referrals or mentions separately; a successful robots test is evidence about a rule, not evidence about visibility. The LLM visibility glossary covers that separate measurement question.

Verify the delivered behavior, not just the text file

After publishing a change:

  1. Fetch the public robots.txt file and confirm the response is the file you edited. Test each relevant token and representative URL with a parser that implements the provider's stated rules.
  2. Check that the web server and CDN/WAF do not independently block an agent you intend to allow. Some providers publish IP ranges to distinguish their crawler requests; a User-Agent alone can be spoofed. Follow the provider's verification method rather than trusting a log label.
  3. Review access logs after the change. They can show whether verified requests continue or stop, but an absent request during a short observation window does not prove permanent exclusion.
  4. Keep private material behind access controls. Use a separate indexing directive when you want to affect Google Search appearance. These controls address different outcomes.

OpenAI and Perplexity each say that changes can take up to about 24 hours to affect their systems. That is an estimate in their documentation, not a universal propagation deadline. Anthropic documents Crawl-delay as an extension, but support is provider-specific; search-engine parsers do not all implement it.

For a quick syntax and rule-match check, use the AI robots.txt checker, then confirm the public file and infrastructure behavior yourself. If a relaunch copied a staging block into production, a Site Audit can help identify affected URLs, but the final policy decision still belongs to the site owner.

The safe starting point is a written policy table: token, documented purpose, allow/block choice, owner and date last verified. That keeps a change to one training preference from accidentally closing Search or user-requested access. It also makes the limits explicit: robots.txt communicates intent to compliant crawlers; it cannot promise how all downstream systems use previously obtained content.

Tags

Frequently Asked Questions

Check how crawlable your site is

Crawl Foundry Site Audit shows which URLs robots.txt blocks, which carry noindex and where content only appears after JavaScript runs.

Explore Site Audit
Matthias Ramahi

Matthias Ramahi

Founder, Crawl Foundry

SEOKeyword ResearchTechnical SEO

Matthias Ramahi is the founder of Crawl Foundry and leads the product, its data sources, and its editorial standards. Crawl Foundry is his central software and SEO project.

Prefer Crawl Foundry on Google

Add crawlfoundry.com as a preferred source in your Google account and our articles will appear higher up on Google. Optional, and you can undo it at any time.

Set as preferred source

You Might Also Like

Search this website

Find product information, FAQ and documentation with links to the original pages.