Robots.txt for AI Crawlers: Which Bots to Allow or Block

To give AI search and assistant products access to your pages, allow the search and user-retrieval bots (OAI-SearchBot, PerplexityBot, Claude-SearchBot

Share:

To give AI search and assistant products access to your pages, allow the search and user-retrieval bots (OAI-SearchBot, PerplexityBot, Claude-SearchBot and Claude-User). Then decide separately whether training bots like GPTBot and ClaudeBot may collect your content. OpenAI and Anthropic document search and training under different user-agents, and Perplexity states that PerplexityBot is not used to crawl content for AI foundation models. That lets you opt out of training without blocking these search bots. Allowing a bot makes access possible; it does not guarantee that your pages appear in results or get cited. Google-Extended needs its own decision, because Google uses that one token for both Gemini training and certain grounding uses.

Get this wrong and the damage is quiet. Disallow a retrieval bot by accident, and that assistant may stop fetching your pages when a user asks a question your content answers. Below is a directive-by-directive guide to setting up robots.txt for AI crawlers, based on what each company documents about its own bots.

Which AI crawlers exist and what each one does

The bots below are the ones documented in official crawler pages from OpenAI, Anthropic, Perplexity and Google. Other AI crawlers exist, so treat this as a starting list, not a complete register.

OpenAI: OAI-SearchBot and GPTBot

OpenAI uses two robots.txt tags so webmasters can manage how their content works with AI. According to OpenAI’s crawler documentation, each setting is independent: you can allow OAI-SearchBot to appear in search results while disallowing GPTBot to signal that crawled content should not be used for training OpenAI’s foundation models. If you allow both, OpenAI may use one crawl for both purposes. OpenAI notes that it can take about 24 hours after a robots.txt update before its search systems adjust.

Anthropic: ClaudeBot, Claude-User and Claude-SearchBot

Anthropic runs three robots with three different jobs. As described in Anthropic’s help article on its crawlers:

  • ClaudeBot collects web content that could contribute to model training. Restricting it signals that your future materials should be excluded from training datasets.
  • Claude-User fetches pages when a Claude user asks a question. Disabling it prevents Anthropic from retrieving your content in response to a user query, which may reduce your visibility for user-directed web search.
  • Claude-SearchBot crawls to improve search result quality. Disabling it prevents your content from being indexed for search optimization.

Perplexity: PerplexityBot

Perplexity’s crawler documentation states that PerplexityBot is designed to surface and link websites in Perplexity search results and is not used to crawl content for AI foundation models. Perplexity recommends allowing PerplexityBot in robots.txt and permitting requests from its published IP ranges if you want to appear in its results. Changes can take up to 24 hours to take effect.

Google: Google-Extended and Google-CloudVertexBot

Google-Extended works differently. In Google’s list of common crawlers, it is described as a standalone product token with no separate HTTP user-agent string. Google crawls with its existing user-agents; the token only controls use. It manages whether content may be used to train future Gemini models and for grounding in Gemini Apps and Grounding with Google Search on Vertex AI. Google-CloudVertexBot handles crawls that site owners request for building Vertex AI Agents, and Google states it has no effect on Google Search or other products.

Token Company Documented role What blocking signals
OAI-SearchBot OpenAI Search results Opting out of appearing in OpenAI search results
GPTBot OpenAI Training data Content should not be used for foundation model training
ClaudeBot Anthropic Training data Future materials excluded from training datasets
Claude-User Anthropic User-initiated fetches No retrieval for user queries; may reduce visibility
Claude-SearchBot Anthropic Search quality Content not indexed for search optimization
PerplexityBot Perplexity Search results and links Opting out of Perplexity search results
Google-Extended Google Gemini training and grounding (control token only) Content not used for Gemini training or the listed grounding uses

Blocking a search crawler vs blocking a training bot

The practical difference is what the bot is for. A training bot collects content that may be used for future models; blocking it is a statement about how your content may be used later. A search or retrieval bot indexes or fetches your pages for search results and user questions. Blocking one has documented effects: OpenAI and Perplexity tie their search bots to appearing in their search results, and Anthropic says disabling Claude-User stops it from retrieving your content in response to a user query, which may reduce your visibility for user-directed web search.

12.000+ DOWNLOADS
How do you get AI to recommend your brand?

The future of search belongs to brands that build authority, not just content.

Authora helps businesses create structured authority systems that increase visibility in Google AI, ChatGPT, Gemini and Perplexity.

So the question to ask for each directive is simple: does this bot serve search and user retrieval, or does it collect data for training? For a brand pursuing generative engine optimization (GEO), the search and user bots are the ones to keep open, because blocking them removes the access paths these companies document for their search and retrieval features. Allowing them makes your pages available to those systems; it does not guarantee citations.

Google-Extended is the exception that needs thought. Because Google ties training and grounding in Gemini Apps to the same token, blocking it is not a pure training opt-out. Weigh that before you add it to a disallow list.

And don’t forget classic search crawlers. Their rules sit in the same robots.txt file, so a broad group meant for one bot can affect others. Review every user-agent group, not only the AI tokens.

A sample setup: visible in AI search, opted out of OpenAI and Anthropic training

This is one possible configuration, not a universal recommendation. It allows the documented search and retrieval bots from OpenAI, Anthropic and Perplexity, and disallows the OpenAI and Anthropic training tokens (GPTBot and ClaudeBot). It is not a full training opt-out, because it does not set a rule for Google-Extended:

User-agent: OAI-SearchBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: Claude-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

Google-Extended is not covered by this example, and leaving it out is not a neutral choice. Without its own group, other rules in your file, such as a broad User-agent: * group, can determine what applies to it. Google says the token controls both use for training future Gemini models and grounding in Gemini Apps and Grounding with Google Search on Vertex AI. So decide explicitly: add a User-agent: Google-Extended group with Disallow: / if you want to opt out of both, or Allow: / if you accept both. If you are comfortable with training across the board, you can simply allow everything. The point is to make each choice deliberately, per token.

How to verify which bots actually reach your pages

A clean robots.txt file proves intent, not access. Use these checks:

  1. Read your server logs. Filter for user-agent strings such as OAI-SearchBot, PerplexityBot and Claude-SearchBot to see which bots request which URLs.
  2. Match IPs where vendors publish them. Perplexity publishes its IP ranges, so you can check whether a request claiming to be PerplexityBot comes from a listed address.
  3. Don’t look for Google-Extended in logs. It has no separate user-agent string, so its absence there tells you nothing.
  4. Allow for a delay. OpenAI and Perplexity both mention up to roughly 24 hours before robots.txt changes are reflected.
  5. Check firewall and CDN rules. A bot-protection setting can block requests that robots.txt allows. Your logs will show whether requests arrive and what status code they get.

Common robots.txt mistakes that exclude AI crawlers

  • A blanket disallow left over from staging. A Disallow: / under User-agent: * can lock out every compliant bot. Because templates and deploys copy files, one rule can affect your whole site.
  • Blocking the wrong OpenAI token. Disallowing OAI-SearchBot when you meant to block training takes you out of OpenAI search results. GPTBot is the training token.
  • Treating Claude-User as a scraper. It fetches pages for real user questions. Blocking it may cost you visibility in user-directed search.
  • Assuming Google-Extended only affects training. Google’s documentation includes grounding in Gemini Apps.
  • Blocking whole folders with key content. A disallow on a path like a blog or help directory keeps compliant bots away from every page in it, including pages you want AI search tools to be able to retrieve.

Robots.txt is only one blocker. If bots get in but see thin pages, look at rendering with this guide to server-side rendering for Bing indexing, check whether a consent banner is blocking crawlers, and run the full Bing indexing troubleshooting checklist.

Your next step

Open your live robots.txt today and list every user-agent group. Mark each token as search, user retrieval or training, then confirm that your rules match your intent. After 24 hours, check your logs to see which bots actually came back.

Access is the floor, not the finish line. Once bots can reach your pages, you still need content worth citing. Want that built for you without hiring an SEO team? See how Authora works.

Get the latest insights from Authora

The Authora blog offers expert perspectives on AI content, organic growth, and what’s next in search

How to become the brand Ai recommends

A practical guide to increasing visibility in ChatGPT, Google AI, Gemini and Perplexity

Product Feed Optimization for AI Shopping: What Counts

Yes, product feeds can affect whether AI shopping assistants show your products, but only on platforms that actually take feed

Voice Search vs GEO: Same Job for Siri, Alexa and ChatGPT?

No, voice search optimization and GEO are not the same thing. They overlap, but they aim at different outputs. Voice

12.000+ DOWNLOADS

Download the free blueprint

Businesses that build authority today will become the trusted source within Google and AI chatbots tomorrow. If you don’t claim that position now, your competitor will.

This website uses cookies

We use cookies to personalise content and advertisements, to provide social media features, and to analyse our website traffic. We also share information about your use of our site with our social media, advertising and analytics partners. These partners may combine this data with other information you have provided to them or that they have collected based on your use of their services.