训练爬虫
ClaudeBot 是由 Anthropic 运营的机器人,它会收集网页用于训练 AI 模型。抓取数据,用于训练 Anthropic 提供的 LLM 和 AI 产品。它遵守 robots.txt,自称 ClaudeBot 的请求可通过以下方式核验:已公布的 IP 范围文件。
请求声明
"ClaudeBot/1.0"
核验依据
Anthropic 的公布的 IP 段
实时检查
粘贴日志中的地址,系统会将其与运营方公布的信息进行比对。
参考
| User agent | Mozilla/5.0 (compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
|---|---|
| 运营方 | Anthropic |
| 用途 | 抓取数据,用于训练 Anthropic 的 AI 产品。 |
| 是否遵守 robots.txt | 遵守来源 |
| 验证方法 | IP 段已公布的 IP 范围文件 Anthropic 公布了一个前缀文件,涵盖 ClaudeBot、Claude-User 和 Claude-SearchBot。自称 ClaudeBot 但来自这些前缀之外的请求属于伪造。 |
| 抓取模式 | 未公布 |
| robots.txt 标识符 | ClaudeBot |
| 运营方文档 | https://support.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler |
抓取数据,用于训练 Anthropic 提供的 LLM 和 AI 产品。
robots.txt
选择一项粘贴到域名根目录下。规则按标识符分别生效。
User-agent: ClaudeBot
Disallow: /User-agent: ClaudeBot
Allow: /User-agent: ClaudeBot
Allow: /
Disallow: /account/
Disallow: /checkout/
Disallow: /search请修改 Disallow 路径,使其与你自己的 URL 一致。
FAQ
ClaudeBot 是由 Anthropic 运营的机器人,它会收集网页用于训练 AI 模型。抓取数据,用于训练 Anthropic 提供的 LLM 和 AI 产品。它遵守 robots.txt,自称 ClaudeBot 的请求可通过以下方式核验:已公布的 IP 范围文件。
是。运营方在文档中说明 ClaudeBot 会读取 robots.txt,并遵守针对其自身标识的 Disallow 规则。规则在下次抓取该文件时生效,可能是发布后数小时或数天。
Anthropic 公布了一个前缀文件,涵盖 ClaudeBot、Claude-User 和 Claude-SearchBot。自称 ClaudeBot 但来自这些前缀之外的请求属于伪造。参考资料发布于 https://claude.com/crawling/bots.json。
在 robots.txt 中为 ClaudeBot 标识添加 Disallow: /。如果该爬虫不遵守 robots.txt,请在 CDN 或反向代理上匹配其 user agent 并返回 403。
屏蔽 ClaudeBot 可使你的网页不进入下一轮训练。它不会删除已收集的内容,也不会影响网站在普通搜索中的排名。