ClaudeBot
Last reviewed
ClaudeBot is Anthropic's web crawler. Anthropic documents that it collects web content that may be used to train its models. Pages fetched for a user's question in Claude come from a separate agent, Claude-User.
| Operator | Anthropic |
|---|---|
| Type | AI crawler or assistant |
| User agent contains | ClaudeBot |
| Purpose | Collects web content that may be used to train Anthropic's models. |
| robots.txt | Follows robots.txt. (source) |
| Runs JavaScript | Not documented by the operator |
| How to verify it | IP ranges published at claude.com/crawling/bots.json |
| Official documentation | support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler |
What it sees on a JavaScript site
A study by Vercel and MERJ, published in December 2024, found that ClaudeBot did not render JavaScript. It downloads the HTML your server sends and reads that. The operator itself does not document this, and a crawler can change at any time.
On a client-rendered app (React, Vue or a Vite single page app) the HTML response is often a shell: a title, a script tag and an empty <div id="root">. If your content only appears after the scripts run, ClaudeBot reads little or nothing of it.
How to allow or block it in robots.txt
Anthropic documents that ClaudeBot follows robots.txt. Its token is ClaudeBot. Anthropic documents its other agents with their own tokens, so a ClaudeBot rule does not cover them.
# Block ClaudeBot from the whole site
User-agent: ClaudeBot
Disallow: /
# Or allow it everywhere
User-agent: ClaudeBot
Allow: /
robots.txt controls whether a bot may fetch a page. It does not change what the bot sees once it fetches it. For the full syntax, see robots.txt.
How Prebaked serves it
Your Prebaked integration looks at the User-Agent header of each request. When it contains ClaudeBot, the request gets the rendered HTML of your page from Prebaked: the same content a visitor sees after the scripts run. Every other visitor gets your site directly. Prebaked does not change the content for crawlers. The visit shows up in your request log, marked as verified when the IP check passes.
To see what a bot that does not run JavaScript gets from your page, run the free checker. The full list of bots Prebaked serves is on Crawlers.
Can AI search cite your site? Check it free
FAQ
Does ClaudeBot run JavaScript?
Anthropic does not document it. The Vercel and MERJ study (December 2024) found that ClaudeBot did not render JavaScript, so content added by scripts is not part of what it read.
How do I block ClaudeBot in robots.txt?
Add a group with User-agent: ClaudeBot and Disallow: /. Anthropic documents that ClaudeBot follows robots.txt.
Does ClaudeBot download JavaScript files?
The Vercel and MERJ study found that Claude's crawler does fetch JavaScript files (23.84 % of its requests in their data) but does not execute them. Fetching a script is not the same as running it.
How can I tell if a visit is really from ClaudeBot?
Anyone can send a user agent that says ClaudeBot. Check the request IP against the IP ranges the operator publishes, listed in the table above. Prebaked does this for you and marks matching visits as verified in your request log.