Anthropic · Model training
How to Allow or Block ClaudeBot in robots.txt
Anthropic's primary web crawler for model training datasets.
Updated
- Official User-Agent
- ClaudeBot
- Owner
- Anthropic
- Purpose
- Model Training
- Recommended action
- Block
- What blocking it means
- Collects content to train foundation models. Blocking it does not remove you from AI search answers.
ClaudeBot robots.txt rules
Allow ClaudeBot
User-agent: ClaudeBot Allow: /
Block ClaudeBotRecommended
User-agent: ClaudeBot Disallow: /
Block ClaudeBot from specific folders only
User-agent: ClaudeBot Disallow: /private/ Disallow: /drafts/ Allow: /
Place these rules in /robots.txt at the root of your domain. Crawlers cache robots.txt, so changes apply the next time ClaudeBot re-fetches it. Allow up to a day or more. If no group names ClaudeBot, it follows your User-agent: * rules. robots.txt is a voluntary standard, not access control. See the FAQ for details.
ClaudeBot FAQ
What is ClaudeBot?
ClaudeBot is a web crawler operated by Anthropic. Anthropic's primary web crawler for model training datasets.
How do I block ClaudeBot in robots.txt?
Add these lines to the robots.txt file at the root of your domain: "User-agent: ClaudeBot" followed by "Disallow: /". To block only part of the site, replace / with a path such as /private/.
How do I allow ClaudeBot in robots.txt?
Add "User-agent: ClaudeBot" followed by "Allow: /". If no rule names ClaudeBot, it falls back to your "User-agent: *" rules, so check that those don't block it.
What happens if I block ClaudeBot?
Anthropic will stop using your pages to train future models. You still appear in AI search answers, because those use separate search crawlers.
Should I allow or block ClaudeBot?
AEO Grader recommends blocking ClaudeBot if you want to opt out of AI model training. Blocking it doesn't stop separate AI search crawlers, such as OAI-SearchBot or PerplexityBot, from fetching your pages. The right choice depends on your content licensing goals.
Does blocking ClaudeBot remove content it already collected?
No. robots.txt only affects future crawling. Content collected before you added the rule isn't removed. Check Anthropic's own documentation for any separate opt-out or removal process.