Which AI crawlers to allow in robots.txt, and what each one does
Last reviewed
Short answer
Separate training crawlers from retrieval bots. Blocking GPTBot or ClaudeBot limits model training use. Blocking OAI-SearchBot, PerplexityBot or Claude-SearchBot costs you visibility in their search answers. OpenAI says sites blocking OAI-SearchBot can still appear as navigational links. Google-Extended is not a crawler at all, it is a robots.txt control token with no user agent of its own.
The bots, and what each is for
The single most useful distinction here is training versus retrieval. Training crawlers gather content that may be used to train models. Retrieval bots fetch pages at the moment a user asks something, to ground an answer. Blocking the first is a licensing decision. Blocking the second costs you visibility in the answers those products give.
| User agent | Operator | Purpose |
|---|---|---|
| GPTBot | OpenAI | Crawls content that may be used to train foundation models |
| OAI-SearchBot | OpenAI | Surfaces sites in ChatGPT search results |
| ChatGPT-User | OpenAI | User-initiated fetches, not automated crawling |
| PerplexityBot | Perplexity | Surfaces and links sites in search results; not for model training |
| ClaudeBot | Anthropic | Collects web content for model training |
| Claude-SearchBot | Anthropic | Retrieval for search-grounded answers |
The one everyone gets wrong
Google-Extended is listed in a lot of blog posts as an AI crawler. It is not. Google's documentation states plainly that Google-Extended does not have a separate HTTP request user agent string, that crawling is done with existing Google user agents, and that the robots.txt token is used in a control capacity only.
So it is a real thing to configure, and a meaningful opt-out for Gemini training and grounding. It is just not something you will ever see in your server logs, and any audit tool reporting Google-Extended visits is reporting fiction.
What to actually do
Decide once whether you are comfortable with your content being used for training. That is a business decision and there is a reasonable case either way. Then, separately, make sure retrieval bots are allowed, because blocking those is nearly always an accident.
Shopify stores rarely block anything by default, but themes, security apps and CDN rules can. Worth checking rather than assuming. Entitled audits crawler access per bot as part of the free channel checklist, alongside the channel connections themselves.
GPTBot and OAI-SearchBot in one file: how the groups resolve
Name several AI bots in one robots.txt and each bot still reads only one set of rules. RFC 9309, the robots.txt standard, says a crawler finds the group whose User-agent line matches its own token and obeys that group. It only falls back to the User-agent: * group when no group names it. Google documents the same behaviour for its crawlers: other groups are ignored.
So a GPTBot group and an OAI-SearchBot group cannot interfere with each other. OpenAI says each setting is independent, and that if a site allows both bots it may use the results from one crawl for both purposes to avoid crawling twice. The rest fits in five lines.
- A bot with its own group ignores the * group completely, including Shopify's default cart and checkout rules
- Two groups that name the same bot are merged into one
- Within a group the longest matching path wins, so Disallow: /collections/sale beats Allow: /collections for anything under /collections/sale
- If an Allow and a Disallow match equally, the standard says Allow should win, and Google applies the least restrictive rule
- Tokens are case-insensitive. Paths are not, so /Products and /products are different rules
Allow retrieval, block training: the only lines you need
The most common policy for a store is to stay readable to AI search while opting out of model training. Because robots.txt allows anything it does not disallow, that policy needs Disallow lines for the training tokens and nothing else. Add these after Shopify's default rules in robots.txt.liquid.
| Line | What it says |
|---|---|
| User-agent: GPTBot | OpenAI's training crawler |
| Disallow: / | Do not use this site to train OpenAI's foundation models |
| User-agent: ClaudeBot | Anthropic's training crawler |
| Disallow: / | Exclude this site's future content from Anthropic's training |
| User-agent: Google-Extended | Google's control token for Gemini, not a crawler |
| Disallow: / | Opt out of Gemini training and Gemini grounding. Google Search is unaffected |
What that block deliberately leaves out
PerplexityBot is missing because Perplexity says it is not used to crawl content for AI foundation models, so there is no training to opt out of. There are also no Allow groups for OAI-SearchBot, PerplexityBot or Claude-SearchBot. They do not need one. And by the first rule above, giving one its own group means it stops reading the * group, so it is no longer covered by Shopify's default cart and checkout disallows. If you add explicit groups anyway, as the full template does, copy the defaults you still want into them.
Google-Extended is the awkward one. Google documents the token as covering both training of future Gemini models and grounding in Gemini Apps and Grounding with Google Search on Vertex AI. There is no Google line that blocks training alone, so treat that row as optional and read the trade-off first.
User-initiated agents, and whether they read robots.txt
A third kind of agent fetches one page because a person asked about it. These are the agents publisher blocklists most often catch by accident, and they are also the ones robots.txt is least able to stop. The operators say so themselves.
| Agent | Operator | What the operator says about robots.txt |
|---|---|---|
| ChatGPT-User | OpenAI | Because these actions are initiated by a user, robots.txt rules may not apply |
| Perplexity-User | Perplexity | Since a user requested the fetch, it generally ignores robots.txt rules |
| Claude-User | Anthropic | Covered by Anthropic's statement that its bots honour robots.txt. Disabling it stops Claude retrieving your content for a user's query |
| Google-Agent | Listed as a user-triggered fetcher, a group Google says generally ignores robots.txt |
Where each vendor documents its bots
If you came here looking for an operator's own documentation, these are the pages. Each one outranks any blog post, this one included, and they do get edited. Perplexity's example user-agent strings and IP file addresses have both changed format since August.
| Operator | Documentation | Tokens | IP ranges |
|---|---|---|---|
| OpenAI | developers.openai.com/api/docs/bots | GPTBot, OAI-SearchBot, ChatGPT-User, OAI-AdsBot | openai.com/gptbot.json, searchbot.json, chatgpt-user.json, adsbot.json |
| Perplexity | docs.perplexity.ai/guides/bots | PerplexityBot, Perplexity-User | www.perplexity.ai/perplexitybot.json and perplexity-user.json |
| Anthropic | support.claude.com, article 8896518 | ClaudeBot, Claude-User, Claude-SearchBot | claude.com/crawling/bots.json |
| developers.google.com/crawling, common crawlers and user-triggered fetchers | Googlebot, Google-Extended, Google-Agent and others | common-crawlers.json, plus reverse DNS |
Frequently asked questions
Should I block GPTBot?
That is a licensing preference, not an SEO decision. Blocking GPTBot limits use of your content for model training. It is distinct from OAI-SearchBot, which is what surfaces you inside ChatGPT search results, and blocking that one costs you visibility.
Is Google-Extended a crawler?
No. Google documents that Google-Extended has no separate user agent string; crawling uses existing Google user agents and the robots.txt token acts only as a control for Gemini training and grounding.
Is Bingbot an AI crawler?
Bingbot is Microsoft's general search crawler rather than an AI-specific one. It matters here indirectly, because Bing's index feeds some AI search retrieval, which is also why IndexNow is worth using.
Do I need an Allow line for OAI-SearchBot or PerplexityBot?
No. robots.txt allows anything it does not disallow, and Shopify's default rules disallow cart and checkout URLs, not product pages. An explicit group only earns its place when it overrides a broader block. Add one and that bot stops reading the * group, so copy across any default rules you still want it to follow.
Does ChatGPT-User respect robots.txt?
OpenAI says that because ChatGPT-User actions are initiated by a user, robots.txt rules may not apply. It also says ChatGPT-User is not used to decide whether content appears in ChatGPT search. OAI-SearchBot is the token for that.
What is PerplexityBot?
A crawler, or crawl bot, is a program that fetches web pages automatically. PerplexityBot is Perplexity's search crawler: Perplexity says it is designed to surface and link websites in Perplexity results and is not used to crawl content for AI foundation models. A separate agent, Perplexity-User, handles live fetches for a user's question.
How long does a robots.txt change take to work?
About a day. OpenAI says roughly 24 hours for ChatGPT search, Perplexity says up to 24 hours, and Google generally caches robots.txt for up to 24 hours. Read the rendered file at yourstore.com/robots.txt straight away, then give the bots a day.
Sources
Keep reading
Score your own catalog
Entitled grades every product against the rules on this page, explains each failure, and fixes them with AI you approve. The score is free forever.
