How to block ClaudeBot
Add this rule to your robots.txt at the root of your domain:
User-agent: ClaudeBot Disallow: /
Anthropic documents separate tokens for user-initiated fetches (Claude-User) and search (Claude-SearchBot); blocking ClaudeBot only stops the training and retrieval crawler.
How to allow ClaudeBot
If you want ClaudeBot to crawl your site, make sure no rule disallows it. An explicit allow looks like this:
User-agent: ClaudeBot Allow: /
Then confirm from the live fetch with the AI crawler checker, which reads your published robots.txt the way a crawler would.
How to verify ClaudeBot
The reliable check is reverse DNS on the fetching IP address. Run the lookup below against any visitor claiming the ClaudeBot token; a genuine fetch resolves inside Anthropic's address space, and a spoofed one does not.
dig +short -x 203.0.113.5 # e.g. for fetching-ip # A genuine ClaudeBot fetch resolves to an Anthropic address
Frequently asked questions
How do I stop Claude from using my content for training?+
Add User-agent: ClaudeBot with Disallow: / to robots.txt. Anthropic documents that ClaudeBot honors the rule.
What is the difference between ClaudeBot and Claude-User?+
ClaudeBot crawls for training and retrieval. Claude-User fetches a page only when a Claude user asks about it directly. They are separate tokens with separate rules.
How do I verify a ClaudeBot visitor?+
Reverse DNS on the fetching IP should resolve to an Anthropic address. If it does not, the visitor is spoofing the token.
Related: all AI crawlers, how to block AI crawlers, how to allow AI crawlers, robots.txt guide.