AI tools

How to Block AI Crawlers: robots.txt Guide for 2026

Published: 5 min read By Andrzej M.

Server racks with colorful network cables

Most AI companies now publish the names of their crawlers, which means you can choose, bot by bot, whether your content is used for model training, for AI search answers, or not at all. This guide explains the main crawlers from OpenAI, Anthropic, Google and Meta, shows example rules, and covers the limits of robots.txt. It was prompted by a week in which Meta briefly published business terms that experts said could allow broad crawling for AI training, before removing the clause.

What is the difference between training, search and user-triggered bots?

AI vendors split their crawlers into three jobs, and the right decision differs for each. Training crawlers collect content that may be used to train foundation models. Search crawlers index pages so a product can cite or link to them in answers. User-triggered fetchers visit a page because a person asked a chatbot or agent to read it.

Many site owners opt out of training but stay visible in search. That is possible with most vendors because each job has its own token. The risk is blocking everything by accident and disappearing from AI search results, or blocking nothing and having no say in how your pages are used.

Which AI crawlers should you know about?

The table summarises what each operator’s documentation says. Names and behaviour can change, so check the linked documentation before you deploy.

OperatorTokenJobWhat blocking doesCaveat
OpenAIGPTBotTrainingSignals content should not be used to train modelsDoes not affect search
OpenAIOAI-SearchBotSearchSite will not appear in ChatGPT search answers, though it can still appear as a navigational linkChanges take about 24 hours
OpenAIChatGPT-UserUser-initiated actionsOpenAI says robots.txt rules may not applyNot used for automatic crawling
AnthropicClaudeBotTrainingSignals future content should be excluded from trainingRepeat for each subdomain
AnthropicClaude-SearchBotSearchMay reduce visibility in search results
AnthropicClaude-UserUser requestsStops retrieval for those requestsMay reduce visibility in user-directed search
GoogleGoogle-ExtendedGemini training and groundingOpts content out of those usesDoes not affect Google Search; no separate user-agent string
MetaMeta-ExternalAgentTraining or indexing for productsBlocked with a disallow rule
MetaMeta-ExternalFetcherUser-requested link fetchesMeta says it may bypass robots.txtFetches are requested by users
MetafacebookexternalhitLink previewsMight bypass robots.txt for security or integrity checksNeeded for share previews

How do you block AI training in robots.txt?

Add one group per crawler to the file at the top level of your domain. RFC 9309 says the file must be served as /robots.txt, UTF-8 encoded, with the text/plain media type. Here is a training-only opt-out:

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

Anthropic’s own example for ClaudeBot uses exactly this pattern, and notes you should repeat it for each subdomain you want to opt out. OpenAI states that disallowing GPTBot indicates content should not be used to train its models. Google describes Google-Extended as a robots.txt token that controls use for Gemini training and grounding.

How do you stay in AI search but out of training?

Keep the search tokens allowed and disallow only the training tokens. In practice that means leaving OAI-SearchBot and Claude-SearchBot unblocked while the block above stays in place. OpenAI recommends allowing OAI-SearchBot if you want search visibility. A permissive group looks like this:

User-agent: OAI-SearchBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

Remember that no vendor promises ranking or citation in return. Allowing a search bot only makes your pages eligible.

Can you slow a crawler down instead of blocking it?

Sometimes. Anthropic says it supports the non-standard Crawl-delay extension, for example:

User-agent: ClaudeBot
Crawl-delay: 1

Crawl-delay is not part of RFC 9309, so do not assume every crawler honors it. If crawl load is your concern rather than content rights, server-side rate limiting is more reliable.

Why is robots.txt not enough?

Because it is a convention, not a lock. RFC 9309 states that the rules “are not a form of access authorization,” and it warns that listing paths in the file makes them publicly discoverable. A bad actor can ignore it, and several legitimate fetchers behave differently by design: OpenAI says ChatGPT-User actions are initiated by users so robots.txt rules may not apply, and Meta says Meta-ExternalFetcher may bypass robots.txt for the same reason.

Anthropic adds a practical point: blocking by IP address may not work correctly or persistently, because it stops the bots from reading your robots.txt in the first place. It publishes a list of its crawler IP addresses at claude.com/crawling/bots.json, so a request from one of those addresses can be verified as Anthropic’s.

What does Cloudflare add?

If your site runs behind Cloudflare, its documentation describes AI bot policies under Security Settings, labelled “Configure AI bot policies.” The policies use three presets: Search, Agent and Training. For each, you can block on all pages, block only on pages with ads, or allow. Blocking applies to verified bots in the category and to unverified bots that behave similarly, which goes beyond what robots.txt can enforce.

The older “Block AI bots” option remains documented, but Cloudflare says it is being deprecated from September 15, 2026, and that new domains will by default block Training and Agent bots on pages with ads while allowing Search. Check your own dashboard to see which policy applies to your domain. Cloudflare’s page does not say which plans include these features, so confirm that on your account.

How did we choose what to cover?

We limited this guide to the crawlers and controls that the operators themselves document, and we quote their behaviour rather than inferring it. We excluded third-party lists of user-agent strings and did not test any crawler against a live site, so treat the examples as a starting point and validate them with your own server logs.

What should a small business do this week?

Start with a decision, not a file. Write down which of the three jobs you accept for your content: training, AI search, user-triggered reading. Then apply the matching robots.txt groups, wait about a day for caches to expire, and check your logs for the named user agents. If copied content would cause real harm, such as paid research or customer data, do not rely on robots.txt at all; put it behind authentication.

Also review the terms of the platforms you use. When a vendor changes its terms, the crawler documentation may not change at all. Our AI vendor due diligence checklist lists the data-use questions to ask, and our checklist for securing AI agents covers what to do when agents, rather than crawlers, interact with your systems.

Frequently asked questions

Will blocking GPTBot remove my site from ChatGPT search?

No. OpenAI says disallowing GPTBot signals that content should not be used to train its models, while OAI-SearchBot controls appearance in ChatGPT search. Blocking only GPTBot keeps you in search results while opting out of training.

Does blocking Google-Extended hurt my Google Search ranking?

No. Google states that Google-Extended does not affect a site's inclusion in Google Search and is not a ranking signal. It controls whether content can be used for Gemini training and grounding.

Is robots.txt enough to stop AI scraping?

Not on its own. RFC 9309 says the rules are not a form of access authorization, and compliance is voluntary. For content that must not be copied, use server-side controls such as authentication or bot-management rules.

How long do robots.txt changes take to apply?

Allow about a day. OpenAI says changes for OAI-SearchBot can take around 24 hours, and Meta says its crawlers may cache robots.txt for up to 24 hours.

Sources