---
title: "ClaudeBot User Agent: What It Does & How to Block It"
description: "ClaudeBot is Anthropic's bot that collects public web pages that may be used to train AI models. See its user agent, robots.txt rules and SEO impact."
url: "https://justinha.info.vn/bots/ai-crawlers/claudebot/"
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://justinha.info.vn/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

[AI Training Crawlers](https://justinha.info.vn/bots/ai-crawlers/)

# ClaudeBot *user agent*

Operated by [Anthropic](https://justinha.info.vn/bots/company/anthropic/)

AI trainingOfficial docs Your choice

ClaudeBot is Anthropic's crawler that collects public web content which may be used to train Claude models.

## What identifies ClaudeBot?

- ClaudeBot is operated by **Anthropic** and collects public web pages that may be used to train AI models.
- The robots.txt token for ClaudeBot is **ClaudeBot**.
- A training-only usage preference is separate from Search crawling; check whether this token has additional roles.
- ClaudeBot robots.txt support: **Yes**.
- Recommendation for Generative Engine Optimization (GEO): **Your choice**.

## What is ClaudeBot?

ClaudeBot gathers public pages that could contribute to training Anthropic’s Claude models. Anthropic states that a ClaudeBot block signals that a site’s future content should be excluded from training data.

ClaudeBot is separate from Claude-SearchBot and Claude-User, so blocking it does not stop Claude from searching or reading a page for a user.

## Should you block ClaudeBot?

Choose whether to allow ClaudeBot based on its documented purpose, the service you use and the load it places on your website.

| Effect on search rankings | A training-only usage preference is separate from Search crawling; check whether this token has additional roles. |
| --- | --- |
| Effect on AI visibility | A rule can limit future collection or permitted uses under the operator policy. It does not undo prior collection or prove exclusion from every AI product. |
| Follows robots.txt | Yes |
| Recommendation | Your choice |

## When does ClaudeBot visit your site?

ClaudeBot visits on Anthropic's own crawl schedule, not because a person asked Claude a question. A live visit for a user's question comes from Claude-User. Pages shown in Claude search are collected by Claude-SearchBot.

Anthropic does not publish how often ClaudeBot returns to a website.

The server access log shows the real pattern for your site: count requests that carry the ClaudeBot token per day and per URL.

## Why did Anthropic create ClaudeBot?

Anthropic uses ClaudeBot to collect public web content that could contribute to training its generative AI models. Anthropic states that restricting ClaudeBot signals that the site's future materials should be excluded from its training datasets.

Anthropic keeps training separate from search, so a website can refuse ClaudeBot and still allow Claude-SearchBot to keep appearing in Claude answers.

## What ClaudeBot means for GEO

AI products use web content in two ways: they learn from it when a model is trained, and they retrieve it live when they answer a question. ClaudeBot controls only the first path.

| What changes | If you allow it | If you block it |
| --- | --- | --- |
| **Future model training** | Public pages can become part of the data Anthropic uses to train its models. | Anthropic treats the block as a signal that the site's future materials should be excluded from its training datasets. |
| **What Claude knows about your brand without searching** | Models can learn the brand, products and terminology directly from your pages. | Models learn about the brand only from other websites that mention it. |
| **Citations and links in Claude answers** | No change: citations depend on Claude-SearchBot. | No change while Claude-SearchBot stays allowed. |
| **Pages a user asks Claude to open** | No change: these visits use Claude-User. | No change: these visits use Claude-User. |
| **Google and Bing rankings** | No effect. | No effect. |

## ClaudeBot vs other Anthropic bots

Anthropic runs a separate bot for each job, and each bot follows its own robots.txt rule. Blocking one does not block the others.

| Bot | Job | robots.txt | If you block it |
| --- | --- | --- | --- |
| **ClaudeBot** | AI training | Yes | A rule can limit future collection or permitted uses under the operator policy. It does not undo prior collection or prove exclusion from every AI product. |
| [Claude-SearchBot](https://justinha.info.vn/bots/ai-search/claude-searchbot/) | AI search | Yes | Restricting access can limit future retrieval or discovery in that service. Citations and removal of already indexed content are not guaranteed. |
| [Claude-User](https://justinha.info.vn/bots/ai-assistants/claude-user/) | AI assistant | Yes | A blocked request may fail, but a product can use cached content or other sources. Check documented robots exceptions. |
| [anthropic-ai](https://justinha.info.vn/bots/ai-crawlers/anthropic-ai/) | AI training | Not documented | A rule can limit future collection or permitted uses under the operator policy. It does not undo prior collection or prove exclusion from every AI product. |
| [Claude-Web](https://justinha.info.vn/bots/ai-assistants/claude-web/) | AI assistant | Not documented | A blocked request may fail, but a product can use cached content or other sources. Check documented robots exceptions. |
| [Claude-Code](https://justinha.info.vn/bots/ai-agents/claude-code/) | AI agent | Not documented | Restricting an agent can interrupt the task it is performing. It does not establish a measured effect on sales or AI citations. |

## Should your type of site allow ClaudeBot?

| News sites and publishers | Blocking ClaudeBot keeps articles out of future training, which suits content with licensing value. Keep Claude-SearchBot allowed if Claude should still cite the articles. |
| --- | --- |
| E-commerce | Allow ClaudeBot if Claude should know the brand, product range and store policies. Block cart, checkout and account paths instead of the whole site. |
| SaaS and B2B | Allow. Documentation, comparison and pricing pages that models learn from help Claude describe the product correctly. |
| Local businesses and services | Allow. A small site gains little from blocking, and training data is one way models learn its services and service area. |
| Paywalled or licensed content | Block ClaudeBot for those sections and keep them behind a login, because robots.txt only asks well-behaved bots to stay away. |

## Common mistakes with ClaudeBot

- Blocking ClaudeBot to leave Claude search. Search uses Claude-SearchBot; block that token instead if the goal is to leave Claude search.
- Blocking every Anthropic bot with one broad rule while trying to stop only ClaudeBot. Write a separate robots.txt group for each token.
- Assuming robots.txt works backwards. The rule tells ClaudeBot what it may crawl next; it is not described as removing data collected earlier.
- Trusting the user agent alone: check the request IP against the IP list Anthropic publishes for ClaudeBot before acting on log data.

## How do you block or allow ClaudeBot?

Put the robots.txt rule in the file at the root of every domain and subdomain, for example ` https://example.com/robots.txt `. The token **ClaudeBot** is matched case-insensitively.

robots.txt: block

```
# Block ClaudeBot
User-agent: ClaudeBot
Disallow: /
```

robots.txt: allow

```
# Allow ClaudeBot
User-agent: ClaudeBot
Allow: /
```

robots.txt: partial

```
# Keep ClaudeBot out of private areas only
User-agent: ClaudeBot
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/
Allow: /
```

Nginx

```
# Nginx: return 403 to ClaudeBot
if ($http_user_agent ~* "(ClaudeBot)") {
    return 403;
}
```

Apache

```
# Apache .htaccess: return 403 to ClaudeBot
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (ClaudeBot) [NC]
RewriteRule .* - [F,L]
```

Cloudflare WAF

```
# Cloudflare > Security > WAF > Custom rule, action: Block
(http.user_agent contains "ClaudeBot")
```

## How can you verify ClaudeBot traffic?

Anthropic publishes the IP ranges that ClaudeBot uses. A request outside the current published list does not pass that IP check. Investigate before granting an exception.

[Official ClaudeBot IP ranges](https://claude.com/crawling/bots.json)

## How do you find ClaudeBot in server logs?

Search the web server access log for the literal identifier. The command below counts candidate ClaudeBot requests per URL on Nginx or Apache.

```
grep -iF -- 'ClaudeBot' access.log | awk '{print $7}' | sort | uniq -c | sort -rn | head -20
```

For a full report per AI bot, upload the log to the [AI Log File Analyzer](https://justinha.info.vn/ai-log-file-analyzer-tool/), a free tool by Justin Hà.

## ClaudeBot FAQ

Does blocking ClaudeBot remove my site from Claude?

No. ClaudeBot collects training data. Claude search results come from Claude-SearchBot, which follows its own robots.txt rule.

Is ClaudeBot the same as Claude-User?

No. ClaudeBot crawls on Anthropic's schedule. Claude-User visits a page only when a Claude user's request needs it.

What is the ClaudeBot user agent?

ClaudeBot uses the robots.txt token "ClaudeBot". No full user-agent sample is recorded in this profile. Treat a token match as a candidate identity, not authentication.

Does ClaudeBot respect robots.txt?

Anthropic states that ClaudeBot follows robots.txt rules. Check the documented scope and any exceptions on this profile.

Will blocking ClaudeBot hurt my SEO?

A training-only usage preference is separate from Search crawling; check whether this token has additional roles. A rule can limit future collection or permitted uses under the operator policy. It does not undo prior collection or prove exclusion from every AI product.

How do I block ClaudeBot in robots.txt?

Add two lines to the robots.txt file at the root of each domain and subdomain: "User-agent: ClaudeBot" followed by "Disallow: /". The token is case-insensitive. Operator fetch schedules and caching policy determine when a change is applied; check subsequent requests.

How can I verify a request really comes from ClaudeBot?

Yes. Anthropic publishes the IP ranges ClaudeBot uses. Check the request IP against that list; a source outside the current list does not pass that check. Investigate before granting an exception.

How do I see if ClaudeBot visits my website?

Search your server access log for "ClaudeBot", for example with: grep -i "ClaudeBot" access.log. The AI Log File Analyzer by Justin Hà counts visits per AI bot from an uploaded log file.

Sources: [Anthropic crawler documentation](https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler). Content updated November 12, 2026 by [Justin Hà](https://justinha.info.vn/about/).

## Related bots

[anthropic-ai Anthropic AI training](https://justinha.info.vn/bots/ai-crawlers/anthropic-ai/)   [Claude-Code Anthropic AI agent](https://justinha.info.vn/bots/ai-agents/claude-code/)   [Claude-SearchBot Anthropic AI search](https://justinha.info.vn/bots/ai-search/claude-searchbot/)   [Claude-User Anthropic AI assistant](https://justinha.info.vn/bots/ai-assistants/claude-user/)   [Claude-Web Anthropic AI assistant](https://justinha.info.vn/bots/ai-assistants/claude-web/)   [AI2Bot Ai2 AI training](https://justinha.info.vn/bots/ai-crawlers/ai2bot/)

## See which of these bots actually reach your website

The AI Log File Analyzer by Justin Hà counts visits from GPTBot, ClaudeBot, PerplexityBot and other AI crawlers in your server log, for free. The GEO Technical Package sets up robots.txt, llms.txt and crawler access for AI search.

[Analyze your AI bot traffic free](https://justinha.info.vn/ai-log-file-analyzer-tool/) [See the GEO Technical Package](https://justinha.info.vn/geo-ai-branding/technical-package/)
