Quick answer: It depends on what you want. AI companies run training crawlers (like GPTBot and ClaudeBot) and separate search crawlers (like OAI-SearchBot and Claude-SearchBot). You can block training and still appear in AI search answers. Blocking Google-Extended does not remove you from Google Search.
The three kinds of AI bots
1. Training crawlers
These collect pages to train future AI models. Blocking them asks the company not to use your new content for training.
- GPTBot (OpenAI)
- ClaudeBot (Anthropic)
- Google-Extended (Google, for Gemini). This is a robots.txt token only. It does not change Google Search.
- Applebot-Extended (Apple)
- CCBot (Common Crawl, a free archive many models use)
- meta-externalagent (Meta), Bytespider (ByteDance), Amazonbot (Amazon)
2. AI search crawlers
These find pages to show and link in AI answers. Block them and you can disappear from those answers.
- OAI-SearchBot for ChatGPT search
- Claude-SearchBot for Claude’s search results
- PerplexityBot for Perplexity
3. User-triggered fetchers
ChatGPT-User, Claude-User and Perplexity-User visit a page when a person asks the AI about it. OpenAI says robots.txt rules may not apply to ChatGPT-User, because a person started the request.
Which choice is right for you?
- You sell a product or service: allow everything. Being mentioned in AI answers can bring customers.
- You publish original articles: many publishers block training but allow AI search. You keep the chance of being cited with a link.
- You want no AI use at all: block all of them. You will likely lose AI search traffic.
Copy-paste: block training, allow AI search
Add this to the robots.txt file at the root of your site. Keep your existing User-agent: * rules.
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: meta-externalagent
User-agent: Bytespider
User-agent: Amazonbot
Disallow: /
A bot that finds its own name in a group ignores the User-agent: * group. So if you want a named bot to also follow your normal rules, repeat them in its group.
What robots.txt cannot do
- It is a request, not a lock. Well-known AI companies say they follow it. Unknown scrapers may not.
- It does not remove content that was collected before you added the rule.
- To truly block a bot, use your firewall or CDN (for example Cloudflare’s bot settings).
Check it with our free tools: AI Crawler Checker · Robots.txt Generator and Tester