How to Block AI Crawlers With robots.txt (2026 List and Recipes)

Every major AI user agent in 2026, grouped into search, user-triggered and training bots. Copy-paste robots.txt recipes, firewall options and a quick way to verify your rules.

To block an AI crawler, add a group for its user agent to your robots.txt with Disallow: /, for example User-agent: GPTBot. The catch in 2026 is that each AI company runs several bots with different jobs. Block the wrong one and you vanish from ChatGPT search or Perplexity answers while doing nothing about model training. Below is the current list of AI user agents grouped by purpose, three copy-paste robots.txt recipes, and how to confirm the rules actually work.

Key takeaways

  • AI bots come in three kinds: search indexers, user-triggered fetchers and training crawlers. Decide what you want for each group.
  • For most sites the best default is to block training crawlers and allow AI search bots, so you can still be cited.
  • Google-Extended and Applebot-Extended are robots.txt tokens, not crawlers. Blocking them doesn’t remove you from Google Search, AI Overviews or Apple’s search features.
  • robots.txt is a request, not a lock. User-triggered fetchers may ignore it and some scrapers do, so use a firewall for hard blocks.
  • Always verify: test the rules per bot and make sure your CDN isn’t returning 403 to bots you meant to allow.

The three kinds of AI bots

Search bots crawl pages so an AI product can find, quote and link to them in answers. OpenAI says sites that opt out of OAI-SearchBot won’t be shown in ChatGPT search answers. Blocking these costs you visibility.

User-triggered fetchers load a page because a person asked an assistant to read it, for example by pasting your URL into a chat. They don’t crawl automatically, and several vendors say robots.txt rules may not apply to them because a human started the request.

Training crawlers collect content that may be used to train future models. Blocking them is the opt-out most publishers mean when they say “block AI.” It affects future training only; it doesn’t remove anything already collected.

Should you block AI crawlers at all?

Decide per group, based on what your content is for:

  • Block training if your content is your product (original research, premium articles, datasets, stock images) or if you plan to license it. Opting out costs you nothing in search.
  • Allow search bots if you want AI assistants to cite and link to you. For many businesses, answers in ChatGPT, Claude or Perplexity are becoming a real discovery channel, and a blocked site simply isn’t a candidate.
  • Rate-limit instead of blocking if the real problem is server load. Anthropic supports Crawl-delay for ClaudeBot, and most CDNs can throttle a single user agent without banning it.
  • Use authentication, not robots.txt, for content that must stay private. robots.txt is public and only asks bots to stay away; it doesn’t protect anything.

The 2026 AI user agent list

This table reflects each company’s own documentation as of October 2026. Vendors add and rename bots regularly, so check the linked docs before you rely on it.

CompanyUser agent or tokenPurposeFollows robots.txt?
OpenAIOAI-SearchBotSearch (ChatGPT search results)Yes
OpenAIChatGPT-UserUser-triggered fetchOpenAI says rules may not apply
OpenAIGPTBotTrainingYes
AnthropicClaude-SearchBotSearchYes
AnthropicClaude-UserUser-triggered fetchYes, per Anthropic
AnthropicClaudeBotTrainingYes, including Crawl-delay
PerplexityPerplexityBotSearch indexYes
PerplexityPerplexity-UserUser-triggered fetchGenerally ignores it, per Perplexity
GoogleGoogle-ExtendedToken: Gemini training and groundingToken only, no separate crawler
AppleApplebot-ExtendedToken: opt out of Apple model trainingToken only, no separate crawler
MetaMeta-WebIndexerMeta AI search resultsYes
MetaMeta-ExternalAgentTraining and product indexingYes
MetaMeta-ExternalFetcherUser-triggered fetchMay bypass it, per Meta
AmazonAmzn-SearchBotSearch in Amazon productsYes
AmazonAmazonbotProduct improvement; may train modelsYes (no Crawl-delay)
AmazonAmzn-UserUser-triggered fetch (e.g. Alexa)May not follow all rules
DuckDuckGoDuckAssistBotReal-time fetch for AI answers; not used for trainingYes (allow up to 72 hours)
MistralMistralAI-Index / MistralAI-UserSearch index / user-triggered fetchSee Mistral’s docs
MistralMistralAI-TrainingTrainingYes
Common CrawlCCBotOpen web archive widely used to train modelsYes
ByteDanceBytespiderCrawling linked to AI productsWidely reported not to

Sources: OpenAI crawlers, Anthropic, Perplexity, Google, Apple, Meta, Amazon, DuckDuckGo, Mistral and Common Crawl.

Copy-paste robots.txt recipes

One rule trips up almost everyone: a crawler obeys only the most specific group that matches its name. If you give OAI-SearchBot its own group, it ignores everything under User-agent: *. So repeat any important Disallow lines, such as your admin or checkout paths, inside each named group. Under RFC 9309 you can stack several User-agent lines on top of one set of rules, which keeps the file short.

Recipe 1: block training, allow AI search (recommended for most sites)

# AI search and user-triggered fetchers: allowed
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Meta-WebIndexer
User-agent: Amzn-SearchBot
User-agent: DuckAssistBot
User-agent: MistralAI-Index
User-agent: MistralAI-User
Disallow: /admin/
Disallow: /checkout/

# AI training: blocked
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: MistralAI-Training
User-agent: CCBot
User-agent: Bytespider
Disallow: /

# Everyone else, including Googlebot and Bingbot
User-agent: *
Disallow: /admin/
Disallow: /checkout/

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

Two judgment calls here. Blocking Google-Extended also stops your content from being used for grounding answers in Gemini Apps, so leave it out of the block list if Gemini visibility matters to you. And Amazonbot isn’t listed because Amazon uses it for product features as well as possible training; add it to the training group if you want to opt out.

Recipe 2: block all AI bots, keep normal search

User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: ClaudeBot
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: Meta-ExternalFetcher
User-agent: Meta-WebIndexer
User-agent: Amazonbot
User-agent: Amzn-SearchBot
User-agent: Amzn-User
User-agent: DuckAssistBot
User-agent: MistralAI-Index
User-agent: MistralAI-User
User-agent: MistralAI-Training
User-agent: CCBot
User-agent: Bytespider
Disallow: /

User-agent: *
Allow: /

This keeps Googlebot and Bingbot crawling as usual, so you stay in regular search. Remember that the user-triggered fetchers on this list may not honor the block.

Recipe 3: allow everything

User-agent: *
Allow: /

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

If no group names an AI bot, it follows the * group. You don’t need to list each bot to allow it. You do need to check that nothing else, like a firewall, blocks it.

Google-Extended and Applebot-Extended explained

Neither is a crawler you’ll see in your logs. Google crawls with its normal Googlebot user agents, and Google-Extended is a token you address in robots.txt to say whether that content may be used to train future Gemini models and to ground answers in Gemini Apps and Vertex AI. Google states that it doesn’t affect inclusion in Google Search and isn’t a ranking signal.

AI Overviews and AI Mode are part of Google Search, so they’re governed by Googlebot plus the usual snippet controls: nosnippet, data-nosnippet, max-snippet and noindex. Never block Googlebot to keep content out of AI Overviews; you’d drop out of Search entirely. Our guide on appearing in AI Overviews covers those controls.

Applebot-Extended works the same way. Apple says it doesn’t crawl pages; disallowing it opts your content out of training Apple’s foundation models, and those pages can still appear in Siri, Spotlight and Safari search results.

Bots that may ignore robots.txt

robots.txt is a voluntary standard. Three groups deserve caution:

  • User-triggered fetchers. OpenAI, Perplexity, Meta and Amazon all say their user-initiated agents may not follow robots.txt fully, because a person asked for that specific page.
  • Bytespider. It has been widely reported to disregard robots.txt. Treat any rule for it as a hope, not a guarantee.
  • Unidentified scrapers. Many scrapers use ordinary browser user agents, or fake a well-known bot name. robots.txt can’t stop them.

Firewall and WAF options for hard blocks

If you need enforcement rather than a polite request, block at the server or CDN.

Cloudflare lets you set AI bot policies by category (training, search and agent bots), with options to block everywhere or only on pages that show ads. Its defaults have changed more than once, and from September 15, 2026 its training-block settings also cover mixed-purpose crawlers, so check what your zone does today. Many sites discover they’re blocking AI search bots they wanted to allow.

On your own server, a user-agent rule returns 403 before your app runs. A minimal Nginx example:

map $http_user_agent $ai_training_bot {
    default 0;
    ~*(GPTBot|ClaudeBot|CCBot|Bytespider|Meta-ExternalAgent|MistralAI-Training) 1;
}

server {
    # ...
    if ($ai_training_bot) { return 403; }
}

User agents can be faked, so the stronger method is to combine the name with the vendor’s published IP list. OpenAI publishes gptbot.json, searchbot.json and chatgpt-user.json; Perplexity and Anthropic publish their ranges too. Allow a bot only when both the name and the IP match.

How to verify your setup

  1. Open /robots.txt in a browser. It should return 200 as plain text, not an HTML error page. A 5xx response can make some crawlers stop crawling altogether.
  2. Test real URLs against each bot with the robots.txt tester. It applies Google’s longest-match rules and highlights which line matched.
  3. Run a live firewall test. The AI crawler checker tests your robots.txt against 25+ AI bots grouped by purpose, then requests the page with real AI user agents to catch 403 blocks from your CDN or WAF.
  4. Check your server logs for the user agents above, and verify suspicious ones against the published IP lists.
  5. Give it time. OpenAI, Meta and Amazon say changes take about 24 hours to apply; DuckDuckGo says up to 72 hours.

Build and test your AI bot rules

Start with the robots.txt generator, which has presets to block AI training bots while allowing AI search bots, then run the AI crawler checker to confirm every bot sees what you intended. If you’d like AI tools to understand your site better rather than block them, our llms.txt guide explains that optional file honestly. For background on the best-known training bot, see the GPTBot glossary entry.

Put this into practice

See which AI bots your robots.txt and firewall let in.

AI Crawler Checker
Yes SEO Editorial Team

We build Yes SEO’s free checkers and write practical guides based on Google’s documentation and hands-on testing of real pages. More about us.