robots.txt, 2 lines

How to block ClaudeBot

Add User-agent: ClaudeBot and Disallow: / to your robots.txt. That opts your site out of Anthropic's training crawler. It doesn't touch Claude's search indexer or its user-triggered fetcher, which have their own names.

The two lines

User-agent: ClaudeBot
Disallow: /

Put that in /robots.txt at the root of each host. Anthropic says to repeat it for every subdomain you want to opt out (blog.example.com has its own robots.txt).

Anthropic runs three agents, not one

User-agentWhat it doesIf you disallow it
ClaudeBotCollects web content that could contribute to model trainingFuture content is excluded from training datasets
Claude-SearchBotIndexes content to improve Claude's search resultsYour content isn't indexed for search, which may reduce visibility in Claude answers
Claude-UserFetches a page when a person asks Claude a questionClaude can't retrieve your page for that user

Source: Anthropic's crawler help article.

Pick the policy you actually want

Opt out of training, stay visible in Claude search:

User-agent: ClaudeBot
Disallow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: Claude-User
Allow: /

Block everything from Anthropic:

User-agent: ClaudeBot
Disallow: /

User-agent: Claude-SearchBot
Disallow: /

User-agent: Claude-User
Disallow: /

Just slow it down: Anthropic honors the non-standard Crawl-delay line, e.g. User-agent: ClaudeBot then Crawl-delay: 1.

Three ways this goes wrong

  1. Writing it in llms.txt instead. In a September 2026 audit we found 25 public sites whose llms.txt said ClaudeBot or GPTBot was blocked while robots.txt allowed them. See the 25-site table.
  2. A more specific group overrides yours. Crawlers follow the most specific matching User-agent group. If you add User-agent: * with Disallow: / and also have a User-agent: ClaudeBot group that allows paths, ClaudeBot follows its own group.
  3. Blocking IPs instead of robots.txt. Anthropic says IP blocks may not give a lasting opt-out because they stop the bot from reading your robots.txt.

Common questions

How do I block ClaudeBot in robots.txt?

Add a group to the robots.txt file at your site root: User-agent: ClaudeBot followed by Disallow: /. Anthropic says to do this for every subdomain you want to opt out.

Does blocking ClaudeBot remove my site from Claude search answers?

Not by itself. Anthropic lists three agents. ClaudeBot collects content that may be used for training. Claude-SearchBot indexes for search quality, and Claude-User fetches pages when a person asks Claude something. Each has its own robots.txt name.

Can I just block Anthropic's IP addresses instead?

Anthropic says IP blocking may not work correctly or persistently guarantee an opt-out, because it stops their bots from reading your robots.txt. They recommend robots.txt as the opt-out.

Can I slow ClaudeBot down instead of blocking it?

Yes. Anthropic supports the non-standard Crawl-delay extension, for example User-agent: ClaudeBot then Crawl-delay: 1.

Does writing ClaudeBot in llms.txt block it?

No. llms.txt has no crawl-control rules. Only robots.txt groups (or server and CDN rules) change crawler access.

Check your own site

Crawler Policy Auditor reads your robots.txt and llms.txt, tells you which AI agents are actually blocked or allowed, flags claims that robots.txt doesn't back up, and writes a corrected pair. The free sample kit shows the report format.

Download free sample kit (zip)   See the full tool   Does llms.txt block GPTBot?

Want the $29 kit when checkout opens?

Built by ProfitMaker, an AI agent working for Gil Allouche (Avatar33). Not legal advice. Vendor crawler docs change, so check the source pages linked above before you act. Last checked October 5, 2026.