Block AI training. Keep AI shoppers.
Most stores that block one AI bot block them all. Here’s how to tell training crawlers from shopping agents, and the robots.txt rules that keep you in AI answers without feeding training data.Most stores that block one AI bot block them all. Here’s how to tell them apart.
When ChatGPT or Perplexity recommends a product, it has to read the store first. Some bots do that reading live, on a shopper’s behalf. Others crawl ahead of time to build a search index. A third group collects pages to train future models.
Your robots.txt can treat each group differently. Many stores don’t, because the rule that blocks a training crawler often blocks the shopping agent too.
Three kinds of AI bot
| PURPOSE | EXAMPLES | IF YOU BLOCK IT |
|---|---|---|
| Search index | OAI-SearchBot, Claude-SearchBot, PerplexityBot | If you block it: You can drop out of AI answers |
| Acting for a shopper | ChatGPT-User, Claude-User, Perplexity-User | If you block it: Agents can’t check price or stock |
| Model training | GPTBot, ClaudeBot | If you block it: No effect on answers today: your choice |
OpenAI, Anthropic and Perplexity each run a separate bot for each job, and each bot announces itself with its own user-agent token, so robots.txt can tell them apart. OpenAI says its settings are independent of each other: disallowing GPTBot keeps your content out of model training, and doesn’t stop OAI-SearchBot showing your pages in ChatGPT search (OpenAI’s crawler documentation).
Anthropic describes the same split for ClaudeBot, Claude-SearchBot and Claude-User, and says all three respect robots.txt. Blocking Claude-SearchBot or Claude-User can make your store less visible when people search with Claude; blocking ClaudeBot tells Anthropic to leave your future pages out of its training data (Anthropic’s crawler documentation).
The bots that act for a shopper are the exception. Because a person asked for the visit, OpenAI says robots.txt rules “may not apply” to ChatGPT-User, and Perplexity says Perplexity-User “generally ignores robots.txt rules” (Perplexity’s crawler documentation). For those agents your firewall matters more than your robots.txt, which is why this article ends there.
Four lines that do the job
This keeps search and shopping agents in, and opts out of OpenAI and Anthropic training:
User-agent: GPTBotDisallow: /User-agent: ClaudeBotDisallow: /Each group names one crawler. Under the Robots Exclusion Protocol, a crawler obeys the group that names it and ignores the others; it falls back to the User-agent: * group only when no group names it (RFC 9309, section 2.2.1). So these four lines change nothing for OAI-SearchBot, Claude-SearchBot or any other bot: they carry on following whatever your file already says for everyone.
That fallback cuts both ways. Some stores begin their file with User-agent: * and Disallow: /, then allow the search engines they know about. If yours does, every AI search and shopping bot is shut out as well. Give them a group of their own, after the training opt-out:
User-agent: OAI-SearchBotUser-agent: ChatGPT-UserUser-agent: Claude-SearchBotUser-agent: Claude-UserUser-agent: PerplexityBotAllow: /Several User-agent lines in a row share the rules beneath them, so this one group covers all five bots. Add the same lines to the robots.txt of every host you sell from: the file only applies to the host, protocol and port it’s served from, so shop.yourstore.co.uk needs its own (RFC 9309, section 2.3).
Changes aren’t instant. Crawlers may keep a cached copy of your robots.txt for up to 24 hours (RFC 9309, section 2.4), and OpenAI says its search systems take about a day to adjust.
What these lines don’t do
They only reach the two companies they name. Other AI companies run their own training crawlers under their own tokens; if you want to opt out of those too, look up each company’s crawler documentation and add a group for it in the same way.
They look forward, not back. Anthropic, for example, describes blocking ClaudeBot as a signal that a site’s future material should be excluded from training. Pages collected before you changed the file aren’t recalled by it.
And they ask; they don’t enforce. The standard is explicit that its rules “are not a form of access authorization” (RFC 9309). Well-behaved crawlers follow them. Anything that ignores them has to be stopped at your server or CDN.
Then check your firewall
robots.txt is a request, not a lock. Bot protection on your CDN can still challenge an agent that robots.txt allows. If shoppers report that ChatGPT “can’t see” your prices, look there next.
Many CDNs and hosting platforms offer bot protection, and some have a one-click setting to block AI crawlers. These run before a bot ever reads robots.txt. An agent that’s shown a JavaScript challenge or a CAPTCHA can’t complete it, so it sees an error page, often a 403, and reports that your page is unavailable. Since shopping agents may not read robots.txt at all, the firewall is usually what decides whether they get in.
Search your CDN or server logs for the user-agent tokens in the table above and check the status codes they received. A run of 403s or challenge pages for OAI-SearchBot or ChatGPT-User means the firewall, not robots.txt, is turning them away. Anyone can copy a user-agent string, so if you write an allow rule, match on the IP ranges OpenAI and Perplexity publish on their crawler pages rather than on the name alone.
How to check it worked
- Open
yourstore.co.uk/robots.txtin a browser. It should load as plain text. If it returns a server error (5xx), crawlers that follow the standard assume your whole site is disallowed until it recovers; if it’s missing (404), they assume nothing is (RFC 9309, section 2.3.1). - Find the group that names each bot. If a bot has no group of its own, read the
User-agent: *group: that’s what it follows. - Check your CDN’s bot settings and logs for challenges or 403s served to the bots you want to let in.
- Wait a day, then look again: your logs should show OAI-SearchBot and Claude-SearchBot still visiting, and GPTBot and ClaudeBot fetching nothing but robots.txt.
Or let us do it: the free Cavora scan reads your robots.txt, flags lines crawlers will ignore, and tests whether AI agents can reach your key pages, with the evidence for each finding.