GEO · Reference

AI crawler user agents & robots.txt templates

6 min read

The short version: AI companies run separate crawlers for search and for training, and robots.txt controls each one by name. Block the training crawlers if you like. Keep the search and user-fetch crawlers allowed if you want to be cited in AI answers.

The crawlers, by purpose

robots.txt tokenCompanyPurposeIf you block it
OAI-SearchBotOpenAISearch indexPages can't appear as sources in ChatGPT search
ChatGPT-UserOpenAIUser fetchChatGPT can't open the page when a user asks about it
GPTBotOpenAITrainingNot used to train OpenAI models
Claude-SearchBotAnthropicSearch indexPages can't appear in Claude's search results
Claude-UserAnthropicUser fetchClaude can't fetch the page for a user
ClaudeBotAnthropicTrainingNot used to train Anthropic models
PerplexityBotPerplexitySearch indexPages can't be indexed and cited by Perplexity
Perplexity-UserPerplexityUser fetchPerplexity can't fetch the page for a user's question
GooglebotGoogleSearch, AI Overviews, AI ModeGone from Google Search entirely
Google-ExtendedGoogleGemini training & grounding (robots.txt token only)No effect on Search or AI Overviews
BingbotMicrosoftBing index, used by CopilotGone from Bing and Copilot answers
Applebot-ExtendedAppleAI training (robots.txt token only)Not used to train Apple's models. Applebot itself still indexes for Siri/Spotlight
DuckAssistBotDuckDuckGoAI answersNot used in DuckDuckGo's AI answers
Meta-ExternalAgentMetaTrainingNot used to train Meta's models
CCBotCommon CrawlOpen dataset (widely used for training)Excluded from future Common Crawl snapshots
BytespiderByteDanceTrainingNot used to train ByteDance's models

Companies add and rename crawlers. Check each vendor's crawler documentation before relying on a list, including this one.

Template 1: allow AI search, block AI training

Prefer to click? The AI robots.txt generator builds this for you.

The most common choice for businesses that want to be cited but don't want to contribute training data:

# AI training: no
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: CCBot
User-agent: Bytespider
Disallow: /

# AI search and user fetches: yes (same exclusions as everyone else)
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: DuckAssistBot
Disallow: /admin/
Disallow: /cart/

# Everyone else
User-agent: *
Disallow: /admin/
Disallow: /cart/

Sitemap: https://example.com/sitemap.xml
The gotcha: a crawler that's named in its own group ignores the User-agent: * group completely. That's why the search-bot group repeats your normal Disallow lines. If you write only Allow: / there, those bots can crawl your admin and cart paths too.

Template 2: allow everything

No AI-specific rules needed. A robots.txt with only your normal exclusions allows every crawler:

User-agent: *
Disallow: /admin/

Sitemap: https://example.com/sitemap.xml

Template 3: block all AI crawlers

If you list both search and training crawlers, you opt out of being cited too. Make sure that's what you want:

User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: ClaudeBot
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: CCBot
User-agent: Bytespider
Disallow: /

Don't add Googlebot or Bingbot to that list unless you also want to leave regular search.

robots.txt isn't the only switch

Check what your robots.txt actually does

Matching rules are subtle: most specific group, longest matching path, Allow wins ties. Test a URL against each AI crawler with the AI visibility checker (all bots at once, with a suggested fix) or the robots.txt tester (one bot, the exact deciding line).

Get told when someone edits it.
CrawlSentry checks your robots.txt every hour and emails you when a change starts blocking ChatGPT, Perplexity or Claude's search crawlers, or Googlebot, from your key pages. 3 URLs free.
Start free