robots.txt for AI crawlers: what to allow and block
Allow AI search crawlers if you want to be cited, decide separately about training crawlers, and never block Googlebot or Bingbot to stay out of AI answers: that removes you from search too. This guide covers the 28 crawlers that matter, gives ready-made robots.txt recipes, and lists the mistakes that block AI search by accident.
What kinds of AI crawlers are there?
AI crawlers fall into four groups, and the right robots.txt rule depends on the group, not on the company. The same company usually runs several, each with its own token: OpenAI uses OAI-SearchBot for search, ChatGPT-User for pages a user asks about, and GPTBot for training.
| Group | What it does | Examples |
|---|---|---|
| AI search (8) | Fetches pages so AI answers can find and cite them. | OAI-SearchBot, Claude-SearchBot, PerplexityBot |
| User-initiated (7) | Opens a page because a person asked an assistant about it. | ChatGPT-User, Claude-User, Perplexity-User |
| Training (10) | Collects content for model training. | GPTBot, ClaudeBot, Google-Extended |
| Search engine (2) | Classic search index; also feeds AI Overviews and Copilot. | Googlebot, Bingbot |
Which AI crawlers should I allow?
Allow the AI search crawlers if you want your pages cited in AI answers: OAI-SearchBot for ChatGPT search, Claude-SearchBot for Claude, PerplexityBot for Perplexity, and the other 5 listed below. Keep Googlebot and Bingbot allowed too, because Google's AI Overviews and Microsoft's Copilot answers are built on their search indexes. Blocking any of these keeps your pages out of the answers it feeds.
The AI search crawlers we track: OAI-SearchBot, Claude-SearchBot, PerplexityBot, DuckAssistBot, Applebot, Amzn-SearchBot, MistralAI-Index, Meta-WebIndexer. A missing robots.txt, or one that doesn't mention them, already allows them all.
Should I block AI training crawlers?
Blocking AI training crawlers is a business decision, and either choice is reasonable. Disallowing GPTBot, ClaudeBot, Google-Extended and the other training tokens asks those companies not to use your content for future model training. It does not remove you from their AI search, because each major AI company uses a separate token for search. And robots.txt only affects future crawling: it can't undo training on content collected before you added the rule.
Does blocking Google-Extended keep my pages out of AI Overviews?
No. Google-Extended controls whether Google may use your content for Gemini training and grounding, and Google says it does not affect a site's inclusion in Google Search. AI Overviews and AI Mode are built from the regular Googlebot index. To limit what they show from a page, use the nosnippet, data-nosnippet or max-snippet controls, or noindex for pages that should not appear at all.
According to Google's documentation of its crawlers (opens in a new tab) and its guide to AI features and your website (opens in a new tab).
Ready-made robots.txt recipes
Copy the recipe that matches your decision into the robots.txt at the root of your domain. Each one keeps classic search working. Where a recipe adds named groups, keep your existing User-agent: * group as it is, and copy any of its Disallow lines that should also apply to the named bots, for the reason explained in the next section.
Allow everything (the default)
With no robots.txt, or with this one, every crawler may fetch every page. It is the right choice if you want the widest reach in AI search and don't mind AI training on your content.
User-agent: *
Disallow:Stay in AI search, opt out of training
One group with all 10 training tokens. Several User-agent lines in a row share the rules below them, and the AI search crawlers keep following your * group.
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Meta-ExternalAgent
User-agent: Amazonbot
User-agent: MistralAI-Training
User-agent: Bytespider
User-agent: cohere-training-data-crawler
Disallow: /Keep AI crawlers out of one section
For example a members area at /members/, while the rest of the site stays open to AI search and training. Name every AI bot, and repeat in the group any rules from your * group that should still apply to them.
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
User-agent: DuckAssistBot
User-agent: Applebot
User-agent: Amzn-SearchBot
User-agent: MistralAI-Index
User-agent: Meta-WebIndexer
User-agent: ChatGPT-User
User-agent: Claude-User
User-agent: Perplexity-User
User-agent: MistralAI-User
User-agent: Meta-ExternalFetcher
User-agent: Google-Agent
User-agent: Amzn-User
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Meta-ExternalAgent
User-agent: Amazonbot
User-agent: MistralAI-Training
User-agent: Bytespider
User-agent: cohere-training-data-crawler
Disallow: /members/Block every AI crawler, keep classic search
This blocks AI search, user-initiated fetches and training, but keeps Googlebot and Bingbot, so your pages stay in classic search and in the AI features built on it. You will not be cited by ChatGPT search, Claude, Perplexity and the other AI search engines.
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
User-agent: DuckAssistBot
User-agent: Applebot
User-agent: Amzn-SearchBot
User-agent: MistralAI-Index
User-agent: Meta-WebIndexer
User-agent: ChatGPT-User
User-agent: Claude-User
User-agent: Perplexity-User
User-agent: MistralAI-User
User-agent: Meta-ExternalFetcher
User-agent: Google-Agent
User-agent: Amzn-User
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Meta-ExternalAgent
User-agent: Amazonbot
User-agent: MistralAI-Training
User-agent: Bytespider
User-agent: cohere-training-data-crawler
Disallow: /How do robots.txt groups work for AI crawlers?
Each crawler follows exactly one group: the one whose User-agent line matches its token, ignoring case, or the User-agent: * group when no group names it. A named group replaces the * rules completely, so a crawler with its own group ignores everything in the * group. Within a group, the most specific rule wins: the longest matching path, with Allow winning a tie.
This is the most common way to open up a page by accident. Here the site wants GPTBot out of /premium/, and keeps everyone out of /admin/:
User-agent: *
Disallow: /admin/
User-agent: GPTBot
Disallow: /premium/Because GPTBot now has its own group, it ignores the * group, and may crawl /admin/. The fix is to repeat the shared rule in the named group:
User-agent: *
Disallow: /admin/
User-agent: GPTBot
Disallow: /admin/
Disallow: /premium/According to RFC 9309 (opens in a new tab), the robots.txt standard published by the IETF in September 2022. It also says crawlers should not use a cached copy of robots.txt for more than 24 hours, and must read at least 500 KiB of it.
Can robots.txt stop every AI bot?
No. robots.txt is a request, not a lock: crawlers that follow the standard obey it, but nothing forces them to. Of the 28 crawlers we track, 5 come with documentation saying robots.txt may not apply to them, because they fetch a page when a person asks for it, and 6 have documentation that doesn't say either way. To enforce a block, use your server, firewall or CDN, and match on the IP ranges the operators publish, since a user agent is easy to fake.
The fetchers that may ignore robots.txt: ChatGPT-User, Perplexity-User, Meta-ExternalFetcher, Google-Agent, Amzn-User. Each bot's page links to the operator's IP list where one exists.
Is my CDN blocking AI crawlers?
It may be, whatever your robots.txt says. Cloudflare began blocking AI crawlers by default on new sites in July 2025, and its pay-per-crawl option answers unpaid crawlers with HTTP 402. Bot protection and rate limits on any CDN or firewall can also turn AI crawlers away. Check your bot settings, and look in your server logs for real requests from the crawlers you want.
Reported by MIT Technology Review (opens in a new tab) when Cloudflare made the change.
What are Content-Signal lines in robots.txt?
Content-Signal lines say how you want your content used after it is crawled, with three signals: search, ai-input (using it in AI answers) and ai-train (model training), each set to yes or no. Cloudflare introduced them in 2025 and adds them to the robots.txt files it manages. Compliance is voluntary. If you want to be quoted in AI answers, don't publish ai-input=no; ai-train=no alone keeps you citable.
Published by Cloudflare as the Content Signals Policy (opens in a new tab).
Does llms.txt replace robots.txt?
No. llms.txt is a proposed file that lists a site's most useful pages for language models; it grants no permissions and blocks nothing. No major AI company has confirmed using it, and Google says such files are not needed. robots.txt remains the file crawlers actually read to decide what they may fetch.
We check llms.txt anyway, as an unconfirmed benefit: the llms.txt check explains what we look for.
How do I check what my robots.txt says to each bot?
Scan any page of your site. The report lists all 28 crawlers, whether your robots.txt lets each one fetch that exact page, and the line that decides it. It also flags a blanket User-agent: * block, a robots.txt that returns an error, and Content-Signal lines that ask AI engines not to quote you.
Sources
The crawler details in this guide come from each operator's documentation, checked on 12 November 2026, for example the bot documentation published by OpenAI (opens in a new tab), Anthropic (opens in a new tab) and Perplexity (opens in a new tab). Every bot's own page links its source.