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 agent | Company | Purpose |
|---|---|---|
| GPTBot | OpenAI | Collects data that may be used to train models |
| OAI-SearchBot | OpenAI | Indexes pages for ChatGPT search results |
| ChatGPT-User | OpenAI | Fetches pages when a ChatGPT user or GPT asks for them |
| ClaudeBot | Anthropic | Collects data that may be used to train models |
| Claude-SearchBot | Anthropic | Indexes pages to improve Claude's search results |
| Claude-User | Anthropic | Fetches pages when a Claude user asks |
| PerplexityBot | Perplexity | Indexes pages for Perplexity answers |
| Perplexity-User | Perplexity | Fetches pages on behalf of a user |
| Google-Extended | A robots.txt token controlling use for Gemini training and grounding (not a separate crawler) | |
| Applebot-Extended | Apple | Token controlling use of content for Apple's AI training |
| CCBot | Common Crawl | Open web crawl used by many AI training datasets |
| Bytespider | ByteDance | Crawler associated with ByteDance AI products |
| Meta-ExternalAgent | Meta | Crawler for Meta AI training and products |
| Amazonbot | Amazon | Crawler 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: /underUser-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.