Guide
AI crawlers in robots.txt: GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and Google-Extended
“Should I allow AI bots?” is the wrong question, because there is no single AI bot. Each vendor runs several agents with different jobs, and blocking the wrong one removes you from the answers you wanted to appear in. The names and behaviour below come from each vendor's own documentation, read on 3 December 2026. Vendors add and rename agents, so check the linked pages before you copy anything into production.
Three jobs, not one
- Training crawlers collect pages that may be used to train future models. Blocking them is an opt-out from training, not from being cited.
- Search crawlers build the index an assistant searches when it answers with links. Blocking them is how you disappear from those answers.
- User-triggered fetchers load a page because a person asked the assistant about it or pasted its URL. They are not crawling on their own schedule.
The tokens, vendor by vendor
| Token | Vendor | Job | What blocking it does |
|---|---|---|---|
GPTBot | OpenAI | Training | Signals your content should not be used to train OpenAI's generative models |
OAI-SearchBot | OpenAI | Search | Your pages are not shown in ChatGPT search answers (they can still appear as navigational links) |
ChatGPT-User | OpenAI | User-triggered | OpenAI says robots.txt rules may not apply, because a user started the request |
ClaudeBot | Anthropic | Training | Signals future material should be excluded from training datasets |
Claude-SearchBot | Anthropic | Search | Your content is not indexed for Claude's search results |
Claude-User | Anthropic | User-triggered | Claude cannot retrieve your page when a user asks about it |
PerplexityBot | Perplexity | Search | Your site is not surfaced in Perplexity search results |
Perplexity-User | Perplexity | User-triggered | Perplexity says this fetcher generally ignores robots.txt |
Google-Extended | Training and grounding control | Content is not used to train Gemini models or for grounding in Gemini Apps and Vertex AI; Google Search is unaffected |
OpenAI. OpenAI's crawler page says each setting is independent: you can allow OAI-SearchBot and disallow GPTBot. It also notes that after a robots.txt change it can take about 24 hours for its search systems to adjust, and it publishes IP ranges for each agent as JSON files. A fourth agent, OAI-AdsBot, only visits pages submitted as ads.
Anthropic. Anthropic's help article lists three bots and says they honour robots.txt, including the non-standard Crawl-delay directive. It advises against blocking by IP address, because that can stop the bots from reading your robots.txt at all.
Perplexity. Perplexity's bot page states that PerplexityBot is not used to crawl content for AI foundation models; it exists to surface and link sites in search results. Changes can take up to 24 hours to take effect.
Google. Google-Extended is different in kind. Google's crawler list says it has no separate HTTP user agent string: crawling is done by Google's existing agents and the token only controls use. The same page says Google-Extended does not affect a site's inclusion in Google Search and is not a ranking signal. AI Overviews and AI Mode are Search features, so they follow Googlebot and Search's own preview controls, not this token. If you want a page out of them, Google documents that nosnippet prevents content from being used as a direct input for AI Overviews and AI Mode.
Template 1: allow everything
If you want to be found and cited everywhere and have no objection to training, you need nothing bot-specific. The wildcard group covers every agent that has no group of its own.
User-agent: *
Allow: /
Sitemap: https://example.com/sitemap.xmlNaming the bots explicitly, as this site's robots.txt does, changes nothing technically. It is documentation for the next person who edits the file.
Template 2: appear in answers, opt out of training
# Everyone else: normal crawling
User-agent: *
Allow: /
Disallow: /cart/
# AI search and user-requested fetches: allowed
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /
Disallow: /cart/
# Model training: refused
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /
Sitemap: https://example.com/sitemap.xmlNote that the Disallow: /cart/ line is repeated in the second group. That repetition is the point of the next section.
The grouping mistake that blocks or exposes more than you meant
Groups are not merged. Google's description of the robots.txt rules says a crawler uses the single most specific group that matches it and ignores the others, and that user-agent-specific groups and the * group are not combined. Look at this file:
User-agent: *
Disallow: /admin/
User-agent: GPTBot
Allow: /blog/The author wanted GPTBot to read the blog and stay out of /admin/. But GPTBot now has its own group, so it no longer reads the * group. Its group contains no Disallow line at all, which leaves /admin/ open to it. Whenever you add a named group, copy into it every rule from the wildcard group that should still apply.
Other things that go wrong
- robots.txt says yes, the firewall says no. Bot-protection settings on a CDN or security plugin can return 403 to these agents regardless of robots.txt. Test with the commands below, and if you allowlist, use the IP lists the vendors publish.
- One file per host. A robots.txt on a subdomain is only valid for that subdomain.
shop.example.comneeds its own. - Using Disallow to hide a page. Google says robots.txt is not a mechanism for keeping a page out of Google; a disallowed URL can still be indexed if other pages link to it. Use
noindexand leave the page crawlable so the tag can be read. - Expecting robots.txt to stop everything. It is a request. Google's own introduction notes it is up to the crawler to obey, and two of the user-triggered fetchers above are documented as not bound by it. Anything private needs authentication.
- Judging the change after an hour. OpenAI and Perplexity both mention up to about 24 hours, and Google generally caches robots.txt for up to 24 hours.
Test it
# 1. Is the file reachable, and is it the file you think it is?
curl -s https://example.com/robots.txt
# 2. Does your server or firewall answer a bot user agent with 200?
curl -s -o /dev/null -w "%{http_code}\n" \
-A "Mozilla/5.0 (compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)" \
https://example.com/
# 3. Which bots actually visited? (path and format depend on your server)
grep -E "GPTBot|OAI-SearchBot|ChatGPT-User|ClaudeBot|Claude-User|Claude-SearchBot|PerplexityBot|Perplexity-User" access.log | tailA 200 in step 2 from your own machine does not prove the real bot gets a 200, because firewalls also look at IP addresses. It does catch the common case where a rule blocks by user agent string. The log check in step 3 is the real confirmation.
A short decision guide
A business that wants customers to find it through assistants should allow the search and user-triggered agents; there is no upside to blocking them. Training is a separate decision about your content, and either choice is compatible with being cited. A publisher whose pages are the product may reasonably refuse training and still allow search. Whatever you choose, write it down in comments in the file, and re-read the vendor pages a few times a year. Once access is settled, the next question is whether the page is worth quoting: see how assistants choose what to cite.
Official sources
Every claim about crawler behaviour, policy or markup on this page comes from the pages below, read on 3 December 2026. They change; if this page and a source disagree, the source is right.
- OpenAI — Overview of OpenAI crawlers
- Anthropic — Does Anthropic crawl data from the web, and how can site owners block the crawler?
- Perplexity — Perplexity crawlers
- Google — Common crawlers (Google-Extended)
- Google Search Central — Introduction to robots.txt
- Google Search Central — How Google interprets the robots.txt specification
- Google Search Central — Robots meta tag, data-nosnippet and X-Robots-Tag