Guide

robots.txt for AI crawlers: how not to lock the assistants out

AI companies run two kinds of crawler: one reads your pages when someone asks a question, the other only collects training data. Block the wrong one and you disappear from AI answers. Here are the common AI crawlers, what each does, and a robots.txt you can copy.

First, tell the two kinds apart

Search and answer crawlers build the index behind an assistant's search, or read pages when someone asks a question. Block them and you are out of that assistant's answers.

Training crawlers collect pages to train the next generation of models. Blocking them does not keep you out of today's answers; it keeps your content out of future training data. Whether to block them is your call.

Common AI crawlers

CrawlerCompanyWhat it doesSource
OAI-SearchBotOpenAIBuilds the index for ChatGPT searchOfficial docs
ChatGPT-UserOpenAIOpens a page when a ChatGPT user asks it toOfficial docs
GPTBotOpenAITrainingOfficial docs
Claude-SearchBotAnthropicBuilds the index for Claude's searchOfficial docs
Claude-UserAnthropicReads a page when a question needs itOfficial docs
ClaudeBotAnthropicTrainingOfficial docs
PerplexityBotPerplexityBuilds Perplexity's search index; not used for trainingOfficial docs
Perplexity-UserPerplexityOpens pages when a user asks a questionOfficial docs
Google-ExtendedGoogleGemini apps: training and grounding. Does not affect Google Search or AI OverviewsOfficial docs
Googlebot, BingbotGoogle, MicrosoftSearch engines; Google's AI Overviews come from Google SearchOfficial docs
CCBotCommon CrawlOpen web dataset that many models are trained onOfficial page
BytespiderByteDanceTrainingThird-party directories
DoubaobotByteDanceDoubao servicesThird-party directories
YiyanBotBaiduERNIE (Wenxin Yiyan)Third-party directories
TongyiBotAlibabaQwen (Tongyi Qianwen)Third-party directories
Kimi-UserMoonshot AIOpens a page when a Kimi user asks it toThird-party directories
DeepSeekBotDeepSeekTrainingThird-party directories

Google-Extended is not a crawler that fetches pages. It is a switch in robots.txt that decides whether your content may be used for training Gemini and for grounding answers in Gemini apps. Google states it does not affect Google Search — and so it does not affect AI Overviews, which draw on what ordinary Googlebot crawls.

User-triggered fetches (ChatGPT-User, Perplexity-User) happen because a user asked the assistant to read a page. OpenAI and Perplexity say these may not follow robots.txt, so robots.txt alone will not block them.

A robots.txt that lets the search and answer crawlers in

This robots.txt lets in the crawlers assistants use to search and answer, and optionally blocks a few training-only ones. Replace the last line with your own domain.

# Let in the crawlers AI assistants use to search and answer
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /

# Optional: keep your content out of training data
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
Disallow: /

# Everyone else
User-agent: *
Allow: /

Sitemap: https://your-domain.com/sitemap.xml

Each crawler follows only the one group whose name matches it best; it does not also read the User-agent: * group. If your * group blocks a directory (say /admin/), repeat that rule in each group above.

Three common mistakes

  • MeasuredBlocking everything with User-agent: * and Disallow: /, then opening the door to Googlebot alone. Every AI crawler stays out.
  • MeasuredMeaning to block training crawlers, and blocking OAI-SearchBot or PerplexityBot along with them.
  • MeasuredAssuming a group written for one crawler inherits the Disallow rules of the * group. It does not: each crawler reads only its best-matching group.

Chinese assistants' crawlers: thin documentation, so check your logs

The crawler names for Doubao, ERNIE, Qwen, Kimi and DeepSeek come mainly from third-party crawler directories. The vendors publish little about them, and whether each one honours robots.txt is not settled. If your customers are in China, don't rely on a list: look in your server logs for which crawlers actually visit.

And a model answering from memory answers from its training data, so blocking a training crawler affects future models, not today's answers.

Your firewall may be blocking AI too

robots.txt is a notice, not a lock. What actually keeps a crawler out may be your CDN's or firewall's bot protection. Cloudflare has offered a one-click block for AI crawlers since September 2024, and since July 2025 it asks new sites at sign-up whether to allow AI crawlers, with blocking as the default. If you use Cloudflare, check that setting.

How to check

With a free account, enter your address on SAG's home page to see whether your robots.txt lets each of these crawlers in, whether the page carries noindex, and whether its canonical tag is right.

Next: “How to get AI assistants like DeepSeek and Doubao to recommend your brand” →

FAQ

Will blocking GPTBot remove me from ChatGPT?

No. According to OpenAI, GPTBot only collects training data. ChatGPT search uses OAI-SearchBot, and ChatGPT-User opens pages a user asks for. As long as those two are not blocked, blocking GPTBot does not keep you out of ChatGPT's search results.

Will blocking Google-Extended remove me from AI Overviews?

No. Google states that Google-Extended governs training and grounding for Gemini apps and the like, not Google Search, and AI Overviews are part of Google Search.

Does robots.txt guarantee my content won't be fetched?

No. It is a request that well-behaved crawlers honour, not access control, and user-triggered fetches may not follow it. To truly block a crawler, do it at the server or firewall.

How much evidence stands behind each tip

Measured
Backed by an actual check or measurement. You can check again after making the change.
Documented or researched
Follows a search engine's own documentation or published research on AI answers. Sound practice, not a guarantee.
No evidence yet
No public evidence yet, and nobody can promise that it works, or when. Cheap items are fine to do, but do the measured ones first.

Sources

  1. OpenAI: Overview of OpenAI crawlers
  2. Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?
  3. Perplexity: Perplexity crawlers
  4. Google: Google's common crawlers (including Google-Extended)
  5. RFC 9309: Robots Exclusion Protocol
  6. Common Crawl: CCBot
  7. Cloudflare: blocking AI crawlers by default (1 July 2025)
  8. ai.robots.txt: a community-maintained list of AI crawlers

Check your robots.txt for free

Enter your address and see, crawler by crawler, whether AI assistants can read your site. Free with any account, no card needed.

Check for free