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.

Website with separate routes for blocked training crawling, open search discovery, and user-requested access

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

  1. Merge the ClaudeBot rule with the site’s existing robots.txt file.
  2. Decide separately whether Claude-SearchBot and Claude-User should be allowed.
  3. Publish the file at the root of each relevant host.
  4. Confirm that the URL returns the intended plain-text content and a successful response.
  5. 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.

Related tools

Related pages

Public website pages available to Claude search while a separate AI training route is blocked Claude-SearchBot robots.txt Rules

Claude-SearchBot is Anthropic’s automated search crawler. Allowing it can help public pages appear in Claude search results; blocking it can reduce that visibility. Control it separately from ClaudeBot and Claude-User.

Single user-requested AI fetch reaching a public webpage while private content remains behind server-side access control Claude-User robots.txt and User-Requested Access

Claude-User is used when a person asks Claude to retrieve web content. Anthropic says it honors robots.txt, but robots.txt is only a crawler preference—not security. Protect private pages with authentication and authorization.

Three separate Claude crawler routes blocked by independent robots.txt rules while regular search remains open Block Claude Crawlers robots.txt Template

To block Anthropic’s documented Claude agents, publish separate Disallow groups for ClaudeBot, Claude-SearchBot, and Claude-User. Blocking all three also removes training, Claude search discovery, and user-directed retrieval, so use only the groups that match your policy.

Separate ClaudeBot training, Claude-SearchBot discovery, and secondary user-request access routes ClaudeBot vs Claude-SearchBot: Training vs Search

ClaudeBot and Claude-SearchBot are separate Anthropic bots. ClaudeBot collects public web content that may contribute to model training, while Claude-SearchBot indexes content to improve Claude search results. You can disallow ClaudeBot while allowing Claude-SearchBot.

Website selectively blocking AI training crawler routes while keeping search discovery routes open How to Block AI Crawlers with robots.txt

To block an AI crawler, add a group for its exact User-agent token and use Disallow: /. Block only the crawler purposes you intend to restrict, keep ordinary search crawlers open when visibility matters, and remember that robots.txt is a request to compliant bots rather than a security control.