NEWAI Prompts Handbook: 200+ prompts and templates for better AI output.Get the book →
Technical

robots.txt for AI Crawlers: GPTBot, ClaudeBot, PerplexityBot and More

The AI crawler user agents you need to know, what each one does, and copy-ready robots.txt rules to allow AI search while optionally blocking AI training.

Your robots.txt file decides which AI crawlers may read your site. Most AI companies now run separate crawlers for model training and for live search or user-requested fetching, so you can allow AI search visibility while opting out of training, if that's what you want.

The main AI user agents

User agentCompanyPurpose
GPTBotOpenAICollects data that may be used to train models
OAI-SearchBotOpenAIIndexes pages for ChatGPT search results
ChatGPT-UserOpenAIFetches pages when a ChatGPT user or GPT asks for them
ClaudeBotAnthropicCollects data that may be used to train models
Claude-SearchBotAnthropicIndexes pages to improve Claude's search results
Claude-UserAnthropicFetches pages when a Claude user asks
PerplexityBotPerplexityIndexes pages for Perplexity answers
Perplexity-UserPerplexityFetches pages on behalf of a user
Google-ExtendedGoogleA robots.txt token controlling use for Gemini training and grounding (not a separate crawler)
Applebot-ExtendedAppleToken controlling use of content for Apple's AI training
CCBotCommon CrawlOpen web crawl used by many AI training datasets
BytespiderByteDanceCrawler associated with ByteDance AI products
Meta-ExternalAgentMetaCrawler for Meta AI training and products
AmazonbotAmazonCrawler used for Amazon services, including Alexa answers

Vendors update these lists from time to time, so check each company's crawler documentation before making permanent decisions.

Important: Google AI Overviews and AI Mode use the normal Googlebot index. Blocking Google-Extended does not remove you from AI Overviews; blocking Googlebot removes you from Google entirely.

Recipe 1: Allow everything (maximum AI visibility)

User-agent: *
Allow: /

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

If you have no AI-specific rules, every compliant AI crawler follows the * group.

Recipe 2: Allow AI search, block AI training

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: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /

User-agent: *
Allow: /

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

Recipe 3: Block all AI crawlers

Only do this if you deliberately want to opt out of AI answers. You'll lose citations and referral traffic from AI assistants.

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: CCBot
Disallow: /

Build a custom version with the AI robots.txt Generator.

Content Signals

Cloudflare introduced a Content-Signal directive in 2025 that lets you state how content may be used, separately from crawl permission:

User-agent: *
Content-Signal: search=yes, ai-input=yes, ai-train=no
Allow: /

search covers search indexing, ai-input covers using content in AI answers (retrieval and grounding) and ai-train covers model training. It's a statement of preference, not a technical block, and support among AI companies is still developing.

Common mistakes

  • A blanket Disallow: / under User-agent: * left over from a staging site.
  • Firewall rules that contradict robots.txt. Many CDNs offer one-click "block AI bots" settings. Check them alongside robots.txt.
  • Assuming robots.txt hides content. It only asks compliant crawlers not to fetch. It's not access control.
  • Typos in user agent names. Matching is case-insensitive, but spelling must be exact.
  • Forgetting the Sitemap line.

How to check your current setup

Run the free AI Crawler Access Checker. It fetches your robots.txt, evaluates the rules for each major AI crawler and flags anything blocked.

Frequently asked questions

Should I block GPTBot?

Blocking GPTBot stops OpenAI using your content for training but doesn't remove you from ChatGPT search, which uses OAI-SearchBot. Most businesses that want AI visibility allow both; publishers protecting premium content often block GPTBot only.

Does blocking AI crawlers hurt Google rankings?

No. Blocking GPTBot, ClaudeBot or Google-Extended doesn't affect normal Google rankings. Only blocking Googlebot does that.

Do AI crawlers respect robots.txt?

The major vendors (OpenAI, Anthropic, Google, Perplexity, Apple) say their declared crawlers respect robots.txt. Undeclared scrapers may not, which is why some sites add firewall rules as well.