AI crawlers and robots.txt: GPTBot, ClaudeBot, PerplexityBot
AI crawlers are automated user agents run by AI companies to collect content for model training, AI search indexes or user-requested page fetches. A robots.txt file is the standard place to state which of them may crawl your store. Treat vendor documentation as the source of truth, because names and behaviors change.
Talk to Barron about your store or program
What are AI crawlers, and why does robots.txt matter for an ecommerce store?
AI crawlers are bots that fetch web pages on behalf of AI products. Some collect text to train models, some build the index behind an AI search feature, and some fetch a single page live when a person asks an assistant about it. Each one identifies itself with a user-agent name, and robots.txt is the file where a site owner states what each name may crawl.
For an ecommerce operator the stakes are practical. Product pages, collection pages, shipping and returns policies and comparison content are exactly what AI answers draw on when a shopper asks which product to buy. Blocking every bot by default can remove your catalog from those answers, while allowing everything may expose content you would rather not feed into model training. The right setting is a business decision, not a technical default.
Robots.txt is also only a request, not a lock. It controls well-behaved crawlers, which is a different job from access control. Anything that must stay private belongs behind a login or server rules, not in a robots.txt line. This guide explains the decision, gives a starting example and shows how to test it. It sits alongside the llms.txt guide and the generative engine optimization guide on this site.
Which AI bots exist, and what does each one do?
The table lists commonly discussed AI user agents and the role each is usually described as playing. Treat it as a map for reading documentation, not as a reference to copy. Check each vendor's current documentation before you write rules, because names, purposes and whether a bot honors robots.txt can change without notice.
| User-agent name | Operator | Usually described as | Decision it affects |
|---|---|---|---|
| GPTBot | OpenAI | Collects content that may be used to train models | Training use of your content |
| OAI-SearchBot | OpenAI | Indexes pages for search features in the assistant | Appearing in assistant search results |
| ChatGPT-User | OpenAI | Fetches a page when a user asks for it | Live page reads during a conversation |
| ClaudeBot | Anthropic | Collects content for model development | Training use of your content |
| Claude-SearchBot | Anthropic | Supports search quality for the assistant | Appearing in assistant search results |
| Claude-User | Anthropic | Fetches a page on a user's request | Live page reads during a conversation |
| PerplexityBot | Perplexity | Indexes pages for the answer engine | Appearing in Perplexity answers |
| Perplexity-User | Perplexity | Fetches a page on a user's request | Live page reads during a conversation |
| Google-Extended | A control token for use of content in some Google AI products | Use in Gemini training and grounding, separate from Search crawling | |
| Applebot-Extended | Apple | A control token for use of content in Apple AI features | Use in Apple model training |
| CCBot | Common Crawl | Builds an open web archive that many AI projects reuse | Indirect training use by third parties |
Should you allow or block AI crawlers? Three policy options
Decide by purpose, not by vendor. The three purposes in the table (training, search indexing, user-requested fetching) have different trade-offs, and most ecommerce stores end up treating them differently.
Search indexing and user-requested fetching are the paths that can send a shopper to your product pages or mention your brand in an answer. Training is a separate question about whether your content may be used to build models. Nothing here ensures visibility or citations either way: allowing a bot makes your pages eligible to be read, not selected.
- Open policy: allow the search and user-requested bots and the training bots. Fits a brand whose main goal is being known and recommended, with content it is happy to have reused.
- Visibility-first policy: allow search and user-requested bots, disallow training-related bots. A common middle path for stores that want AI search eligibility but not training use. Confirm each vendor documents that its training and search bots are controlled separately.
- Closed policy: disallow the AI bots you can name. Fits publishers or brands with licensing concerns. Accept that your products may be described from third-party sources instead, since the pages themselves are not read.
- Whatever the policy, keep Googlebot and Bingbot rules unchanged unless you are deliberately changing normal search. AI-bot rules should be additions, not edits to your search rules.
What does a copy-paste robots.txt example look like?
Below is a visibility-first starting point, written as plain lines. Copy the lines into your robots.txt, replace the sitemap address with your own, and then check each bot name against the vendor's current documentation before publishing. Each User-agent group applies until the next blank line.
In this example, training-related tokens are disallowed while search and user-requested bots keep access. Adjust it to the policy you chose in the previous section. Keep cart, checkout and account paths disallowed for every bot, as most stores already do for search engines. Repeat those Disallow lines inside every named group: under RFC 9309 a crawler follows only the group that names it and ignores the User-agent: * group, so a bot given its own Allow: / group could otherwise crawl the cart and checkout. Several User-agent lines can share one group, as the search bots do below, and listing the specific Disallow lines before Allow: / keeps simple first-match parsers in agreement with the standard.
- User-agent: GPTBot
- Disallow: /
- User-agent: ClaudeBot
- Disallow: /
- User-agent: Google-Extended
- Disallow: /
- User-agent: Applebot-Extended
- Disallow: /
- User-agent: CCBot
- Disallow: /
- User-agent: OAI-SearchBot
- User-agent: ChatGPT-User
- User-agent: PerplexityBot
- Disallow: /cart
- Disallow: /checkout
- Disallow: /account
- Allow: /
- User-agent: *
- Disallow: /cart
- Disallow: /checkout
- Disallow: /account
- Sitemap: https://www.example.com/sitemap.xml
Do AI crawlers respect robots.txt, and do they render JavaScript?
The honest answer separates what is observed from what is assumed. Major vendors publish documentation saying their named crawlers follow robots.txt, and that is the basis for the examples here. Whether every bot, and every user-triggered fetcher, behaves as documented is something you can only confirm from your own server logs. Vendors also differ on whether a fetch triggered by a person is treated like an automated crawl, so read that part of each document closely.
Reports of bots ignoring robots.txt exist, and spoofed user agents are common, so a user-agent name in a log line is not proof of who made the request. If a bot matters to you, verify it using the IP ranges or verification method the vendor documents, if any. For JavaScript, treat rendering as unproven for each bot: some AI crawlers are described as fetching raw HTML only. The safe operator practice is to make sure product names, prices, availability and key copy are present in the initial HTML response, not only after scripts run.
How do you test and monitor your AI crawler rules?
Test before and after every change. A single misplaced slash can block your whole site, so treat robots.txt like code that ships to production.
Work through these steps in order.
- Fetch yourdomain.com/robots.txt in a browser and confirm it returns a 200 status with plain text, not an HTML error page or a redirect to a login.
- Use the robots.txt report in Google Search Console to see the version Google last fetched and any parse errors. It speaks to Googlebot, not to the AI bots, but it catches syntax mistakes.
- Run a robots.txt tester or a crawler such as a desktop SEO spider against a few product, collection and policy URLs, using each AI user-agent name in turn.
- Check server or CDN logs for the bot names you care about. Log the share of requests that hit product pages versus junk URLs such as filters and internal search.
- Re-check quarterly, and after any platform migration, theme change or CDN rule change. Note the date of your last vendor-documentation review next to the file.
What are the most common robots.txt mistakes with AI bots?
Most failures are boring, and they are fixable in minutes once spotted.
- Blocking everything with a wildcard Disallow: / that was meant for a staging site and then shipped to production.
- Assuming robots.txt hides content. A disallowed URL can still be discovered through links, and a blocked page cannot show a noindex tag to crawlers that never read it.
- Copying a long list of bot names from a blog without checking vendor documentation, which leaves stale or invented tokens in the file.
- Forgetting subdomains. Each hostname serves its own robots.txt, so a store, a blog and a help center each need their own rules.
- Blocking CSS, JavaScript or image paths that search engines need to render the page.
- Treating llms.txt as a substitute. It is a separate, optional convention with no proven lift, covered in the llms.txt guide on this site, and it does not replace robots.txt.
How should an operator make the final call?
Start from the commercial question: where do shoppers meet your brand, and which AI surfaces could send them to your product pages? If affiliate publishers, creators or review sites already carry most of your discovery, check whether their pages are open to the same bots, because AI answers often draw on third-party reviews and comparisons as well as the brand site.
Then pick a policy, write the file, test it, and record the date and the vendor pages you read. Review it again when a vendor announces a new bot or purpose. For a deeper audit of crawl access, rendering and indexing alongside the AI-bot policy, see the technical SEO checklist and the guide to measuring AI visibility on this site.
Frequently asked questions
What are AI crawlers?
AI crawlers are automated bots operated by AI companies that fetch web pages for model training, for the index behind an AI search feature, or to read a page live when a user asks about it. Each identifies itself with a user-agent name. Their purposes differ, so most site owners set rules per bot rather than treating them as one group.
Does GPTBot respect robots.txt?
OpenAI documents that GPTBot follows robots.txt directives, which is the basis for blocking or allowing it. Documentation can change, so read OpenAI's current crawler page before relying on it. The only proof for your own site is your server logs: watch whether requests from that user agent continue to hit paths you disallowed.
What is the difference between GPTBot and ChatGPT-User?
GPTBot is described as a crawler that collects content that may be used for training. ChatGPT-User is described as a fetcher that loads a page when a person asks the assistant to read it. They are separate user agents, so rules for one do not automatically apply to the other. Verify current behavior in OpenAI's documentation.
What is ClaudeBot?
ClaudeBot is the user-agent name Anthropic uses for its crawler that collects content for model development. Anthropic also documents separate agents for search quality and for user-requested fetches. Because roles and names can change, check Anthropic's current crawler documentation before deciding which of them to allow in robots.txt.
Do AI crawlers render JavaScript?
Do not assume they do. Behavior differs by bot and can change, and some are commonly described as reading only the raw HTML. For an online store, make sure product names, prices, availability and the main descriptive copy appear in the initial HTML response, and treat any JavaScript rendering by a bot as a bonus rather than a dependency.
Should an ecommerce store block AI crawlers?
It depends on the goal. Stores that want to be eligible for AI answers usually allow search and user-requested bots and decide separately on training bots. Blocking everything can limit how your products are described. No setting secures citations or traffic, so record the policy as a business decision and review it periodically.
Why are AI crawlers ignoring robots.txt?
First rule out mistakes: the file must sit at the root of the exact hostname, return a 200 status as plain text, and use the exact user-agent name. If the setup is correct, the request may come from a spoofed user agent or a bot that does not follow the standard. Verify against vendor IP documentation and block at the firewall or CDN if needed.
Does robots.txt remove pages from Google or AI answers?
Not reliably. Robots.txt controls crawling, not indexing, so a blocked URL can still appear in results when other pages link to it. To keep a page out of Google, use a noindex directive on a crawlable page or restrict access. For AI products, check each vendor's documentation on how disallowed content is treated.
How do you block GPTBot in robots.txt?
Add a rule group to the robots.txt file at the site root: a line reading User-agent: GPTBot, followed by Disallow: / to block the whole site, or specific paths to block only some. The change applies to future crawling. Crawler names change, so check OpenAI's current documentation for each bot's user-agent token.
How do you check whether AI crawlers are visiting a site?
Check server or CDN logs and filter by the crawlers' user-agent tokens, such as GPTBot, ClaudeBot or PerplexityBot. Because user agents can be spoofed, compare requests with each vendor's published IP ranges where available. Analytics tools that run JavaScript usually do not record these visits, so logs are the better source.
Does blocking AI crawlers affect Google Search rankings?
Blocking AI-specific crawlers such as GPTBot does not change how Googlebot crawls or ranks a site. Google documents separate controls, such as the Google-Extended token for some Gemini uses, which Google says does not affect Search inclusion. Rules change, so check Google's current documentation before editing robots.txt.
GEO consulting: generative engine optimization for ecommerce and affiliate brands. Or send a short brief through the contact page.