Anthropic · Training & scraping

ClaudeBot robots.txt guide

Anthropic’s ClaudeBot collects public web content for model development. Anthropic uses separate agents for search and user-directed retrieval.

Reviewed December 1, 2026 · Official documentation

ClaudeBot robots.txt rules

Add the chosen group to your site’s robots.txt. Review existing rules for this token first: repeated matching groups combine.

Block all paths

User-agent: ClaudeBot
Disallow: /

Allow all paths

User-agent: ClaudeBot
Allow: /

Restrict selected paths

User-agent: ClaudeBot
Allow: /
Disallow: /private/
Disallow: /api/

Test ClaudeBot access

Blocked/

Line 2 · Disallow: /

Specific User-agent: ClaudeBot

Site-wide policy: Blocked

What changes if you block ClaudeBot?

Google & Bing Search

This token does not control Googlebot or Bingbot. Blocking it is not a Google or Bing crawl restriction; keep your search crawler rules separate.

AI visibility & content use

A ClaudeBot restriction targets the training crawler, not every way Claude can retrieve your website. Anthropic also documents Claude-SearchBot and Claude-User, which are outside this inspector’s current catalog.

Identify genuine requests

robots.txt token
ClaudeBot

Check Anthropic’s current crawler documentation and your server logs. Do not assume a fixed IP range or a reverse-DNS suffix proves that a request is genuine.

User-Agent versions change. Use the operator’s current examples rather than treating a sample header as proof of identity.

Which robots.txt rule takes priority?

In this inspector, matching groups for ClaudeBot are combined. If a specific group exists, the wildcard group (User-agent: *) is not added. Without a specific group, the wildcard applies. With neither, access defaults to allowed.

For each path, the longest matching directive wins; Allow wins a tie. An empty Disallow does not block anything. A policy result describes the written rules, not proof that a crawler follows them.

Read RFC 9309

Common questions about ClaudeBot

Is ClaudeBot the same as Claude-SearchBot?

No. ClaudeBot is for model development; Claude-SearchBot supports search. Each has a separate robots.txt token.

Can I limit ClaudeBot to public articles?

Use a bot-specific group that blocks unwanted paths and allows public content. Longer matching paths take priority in this inspector.

Does blocking ClaudeBot protect private pages?

No. robots.txt is public and voluntary. Use authentication, authorization, and appropriate server controls for private content; do not publish secret paths as a security measure.

Related bot guides