ClaudeBot robots.txt Rules for Anthropic Training Crawling
ClaudeBot is Anthropic’s crawler for public web content that may contribute to model development and training. A ClaudeBot-specific Disallow rule signals that future material should be excluded from Anthropic training crawls. Claude-SearchBot and Claude-User are separate agents with different purposes.
Primary reference
Official crawler documentation
Use the provider's current documentation to confirm the crawler token and purpose before changing a production robots.txt file.
Copy-paste robots.txt example
User-agent: ClaudeBot Disallow: / User-agent: Claude-SearchBot Allow: / User-agent: Claude-User Allow: /
ClaudeBot’s role in Anthropic’s crawler system
Anthropic operates three documented robots with different jobs. ClaudeBot collects public web content that could contribute to model training and improvement. Claude-SearchBot supports search-result quality, while Claude-User retrieves pages in response to a person’s request.
Because the tokens are separate, a site owner can write a policy that blocks training crawling without automatically disabling Claude search discovery or user-directed retrieval. The example on this page shows that targeted approach.
Block ClaudeBot without overblocking
To opt an entire host out of ClaudeBot crawling, place a Disallow: / rule under User-agent: ClaudeBot. Apply the policy independently to every subdomain that needs the same restriction because each host can publish its own robots.txt file.
Avoid using only User-agent: * when your intention concerns Anthropic training crawling alone. A wildcard policy can affect ordinary search engines, monitoring tools, and other compliant bots. Keep Claude-SearchBot and Claude-User in separate groups when their access decision differs.
Anthropic also supports crawl pacing
Anthropic states that its bots honor standard robots.txt directives and supports the non-standard Crawl-delay extension. If server load rather than training permission is the problem, a measured crawl delay may be more appropriate than a complete site-wide block. Support for Crawl-delay is crawler-specific, so do not assume every search engine interprets it the same way.
A crawl-delay instruction and a disallow rule solve different problems: one limits request pace, while the other tells a compliant bot not to fetch matching paths.
Do not rely on IP blocking as the opt-out method
Anthropic advises site owners to express the opt-out in robots.txt. Blocking network addresses alone can prevent the bot from reading the policy and may not provide a persistent opt-out as address ranges change. IP information is still useful for authenticating log entries, but robots.txt should carry the crawler preference.
Recommended verification process
- Merge the ClaudeBot rule with the site’s existing robots.txt file.
- Decide separately whether Claude-SearchBot and Claude-User should be allowed.
- Publish the file at the root of each relevant host.
- Confirm that the URL returns the intended plain-text content and a successful response.
- Test the final rule with the robots.txt checker and review server logs after deployment.
The ClaudeBot vs Claude-SearchBot guide covers the policy split, and the Claude crawler template provides a broader starting point.
Anthropic’s current definitions, examples, and crawl-delay guidance are available in its official crawler guidance.
FAQ
Does blocking ClaudeBot also block Claude search?
Not automatically. ClaudeBot, Claude-SearchBot, and Claude-User are separate tokens. Set a separate rule for each purpose.
Can I slow ClaudeBot instead of blocking it?
Anthropic says its bots support the non-standard Crawl-delay extension. Use it when request pacing is the concern, and test the live behavior.
Do I need a ClaudeBot rule on every subdomain?
Yes, when each subdomain should have the same preference. Robots.txt is host-specific, so publish the appropriate file at the root of every relevant host.
Is blocking Anthropic IP addresses enough to opt out?
Anthropic recommends using robots.txt. IP-only blocking can stop the crawler from reading your policy and may not remain reliable when network ranges change.
Does a ClaudeBot rule remove material already used in training?
The rule signals that future materials on the blocked host or path should be excluded from training crawls. It is not a retroactive deletion mechanism.
Claude-SearchBot robots.txt Rules
Claude-User robots.txt and User-Requested Access
Block Claude Crawlers robots.txt Template
ClaudeBot vs Claude-SearchBot: Training vs Search
How to Block AI Crawlers with robots.txt