Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information (Cookie Policy)

Accept all cookies

Robots.txt for AI Crawlers: What to Allow, What to Block

Robots.txt for AI crawlers: the user agents of OpenAI, Anthropic, Perplexity and Google, what each one does, and a configuration that keeps you citable.

Published on:
11/10/2026
-
Updated on:
11/10/2026
Illustration of a robot icon next to a blocking sign, representing robots.txt rules
Thibault Besson-Magdelain, founder of Sorank

About Author

Thibault Besson-Magdelain

Founder of Sorank, 7+ years of experience in SEO, GEO enthusiast.

Summarize this article with AI

Table of contents
In short: To stay visible in AI answers, allow the search and user-fetch crawlers (OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot, Perplexity-User and Googlebot) and decide separately whether to allow the training crawlers (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot). Blocking a training bot does not remove you from AI search; blocking a search bot usually does. Each rule goes in your robots.txt under the exact user agent name the vendor documents.

Your robots.txt for AI crawlers has become a business decision, not just a technical file. The same file that once only talked to Googlebot now decides whether ChatGPT, Claude, Perplexity and Gemini can read, quote and link your pages. The format itself has not changed: it is still the Robots Exclusion Protocol standardised as RFC 9309, with user agents, Allow and Disallow lines. What changed is the number of agents, and the fact that one vendor can run several bots with different purposes.

Which AI crawlers exist and what do they do?

Most AI vendors now separate training, search indexing and user-triggered fetching into different user agents. The table summarises the main ones as documented by each vendor.

VendorUser agentPurposeEffect of blocking
OpenAIGPTBotTraining data for OpenAI modelsContent not used for future training
OpenAIOAI-SearchBotIndexing for ChatGPT searchPages may not appear as cited results in ChatGPT search
OpenAIChatGPT-UserPages fetched when a user asks ChatGPT to visit themChatGPT cannot open your page on request
AnthropicClaudeBotTraining data for Claude modelsContent not used for future training
AnthropicClaude-SearchBot, Claude-UserSearch quality and user-requested fetchesLess visibility in Claude answers that search the web
PerplexityPerplexityBot, Perplexity-UserSearch index and user-requested fetchesLess likely to be cited in Perplexity
GoogleGooglebotGoogle Search, including AI Overviews and AI ModeRemoval from Search entirely
GoogleGoogle-Extended (token)Use of content for Gemini models and grounding outside SearchNo effect on Search ranking
AppleApplebot-Extended (token)Use of content for Apple's generative modelsApplebot can still crawl for Siri and Spotlight
Common CrawlCCBotOpen web archive reused by many AI datasetsContent absent from future crawls of the archive

Sources: OpenAI crawler documentation and Google's list of common crawlers. Names change occasionally, so check each vendor's page before editing the file. Our glossary entries on AI crawlers and OpenAI crawlers keep the definitions short.

Should you block AI crawlers?

For most businesses that want customers, no: block training if you must, keep search crawlers open. The trade-off depends on what you sell:

  • Brands, SaaS, e-commerce, local businesses: AI answers are an acquisition channel. Blocking search crawlers removes you from it. Allowing training crawlers also helps future models know your brand.
  • Publishers living from page views or subscriptions: blocking training crawlers protects content value; keeping search crawlers open still brings citations and links.
  • Sites with private or licensed content: block broadly and enforce at the server level, since robots.txt is a request, not an access control.

Explicit groups per user agent, with search bots allowed and a clear choice for training bots. Example for a business that wants AI visibility but prefers not to feed training data:

User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /

User-agent: *
Disallow: /admin/
Sitemap: https://www.example.com/sitemap.xml

Remove the second group if you are happy for your content to be used in training. Our free robots.txt generator builds the file, and the robots.txt checker shows which agents a live file actually allows.

Which mistakes block AI visibility by accident?

The most common one is a blanket rule copied from a forum. Frequent errors:

  • "User-agent: * / Disallow: /" left from staging, which blocks every bot including Googlebot.
  • Blocking OAI-SearchBot while meaning to block GPTBot, which removes you from ChatGPT search instead of training only.
  • A CDN or firewall bot-protection rule that returns 403 to AI user agents regardless of robots.txt. Check your server logs.
  • Blocking the CSS and JavaScript needed to render the page, so crawlers see an empty shell.
  • Important content only loaded client-side; many AI crawlers do not execute JavaScript, so ship the main text in the HTML.

Is robots.txt enough to get cited?

No, it only opens the door. Once crawlers can read your pages, citation depends on whether those pages answer questions clearly, are structured for extraction and are confirmed by other sources. Clean structured data for AI search, answer-first sections and an optional llms.txt file help the next step.

Conclusion

Treat AI crawlers as separate decisions: open the search and user-fetch bots, choose deliberately for training bots, and verify that your server applies the same policy. Then measure whether the open door turns into citations. Sorank tracks your brand in ChatGPT, Claude and Gemini every week and publishes content structured to be cited: start with a 3-day free trial.

Frequently asked questions

Does blocking GPTBot remove my site from ChatGPT answers?

Not by itself. GPTBot collects data for training OpenAI models. ChatGPT search relies on a different crawler, OAI-SearchBot, and on ChatGPT-User for pages a user asks it to open. Blocking only GPTBot limits training use while leaving your pages eligible to appear and be linked in ChatGPT search.

Does Google-Extended affect my rankings or AI Overviews?

No. Google-Extended is a robots.txt token, not a separate crawler, and Google states that it does not affect inclusion or ranking in Google Search. AI Overviews and AI Mode are part of Search and use Googlebot. Google-Extended controls whether your content is used for Gemini models and grounding outside Search.

Do all AI crawlers respect robots.txt?

The major vendors document their user agents and state that their crawlers follow robots.txt, with nuances for fetches triggered directly by a user. Some less transparent bots have been reported to ignore it. For strict enforcement, combine robots.txt with server or firewall rules based on user agent and published IP ranges.

Our Blog for Ambitious Company

Our free SEO tools

See all our free tools

THEY TRIED SORANK BEFORE YOU

Testimonials from ambitious founders

Organic growthE-commerce

0 to 10000 visitors in 5 months

Celio Fabianomonrobotlavevitre.fr
Organic growthSoftware

0 to 5000 clients in 8 months

Thibault BMsorank.com
Organic growthLeisure and aviation

0 to 1104 clicks in 4 months

Dominiqueflight-sensations-idf.com
Organic growthMusic software

x30 clicks in 4 months

Valentin Cordiertiger-sounds.com
Organic growthHealth and wellness

x30 clicks in 4 months

Rodrigue Bretonalthevia.com