訓練用爬蟲

ClaudeBot

ClaudeBot 是由 Anthropic 營運的機械人,會收集用於訓練 AI 模型的網頁。抓取資料,用於訓練 Anthropic 提供的 LLM 及 AI 產品。此機械人遵守 robots.txt;如請求聲稱來自 ClaudeBot,可用的核實依據為已公布的 IP 範圍檔案。

AnthropicIP 範圍robots.txt:遵守

即時檢查

驗證自稱為 ClaudeBot 的 IP

貼上日誌記錄中的地址,系統會與營運者公布的資料核對。

參考資料

ClaudeBot 概覽

ClaudeBot 爬蟲的參考資料
User agentMozilla/5.0 (compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
營運者Anthropic
用途抓取資料,用於訓練 Anthropic 的 AI 產品。
遵守 robots.txt遵守來源
驗證方法IP 範圍已公布的 IP 範圍檔案

Anthropic 公佈單一前綴檔案,涵蓋 ClaudeBot、Claude-User 及 Claude-SearchBot。自稱為 ClaudeBot 但來自這些前綴以外的請求屬於偽造。

https://claude.com/crawling/bots.json

爬取模式未公布
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

允許或封鎖 ClaudeBot

選擇其中一項,貼到網域根目錄。規則按標記分別設定。

封鎖 ClaudeBot
User-agent: ClaudeBot
Disallow: /
允許 ClaudeBot
User-agent: ClaudeBot
Allow: /
允許,但排除不希望被引用的頁面
User-agent: ClaudeBot
Allow: /
Disallow: /account/
Disallow: /checkout/
Disallow: /search

請修改 Disallow 路徑,使其符合你的網址。

封鎖的實際代價

封鎖 ClaudeBot 可使你的網頁不被納入下一輪訓練。此舉不會刪除已收集的內容,亦不會影響網站在一般搜尋中的排名。

為所有爬蟲建立檔案

FAQ

ClaudeBot 常見問題

ClaudeBot 是甚麼?

ClaudeBot 是由 Anthropic 營運的機械人,會收集用於訓練 AI 模型的網頁。抓取資料,用於訓練 Anthropic 提供的 LLM 及 AI 產品。此機械人遵守 robots.txt;如請求聲稱來自 ClaudeBot,可用的核實依據為已公布的 IP 範圍檔案。

ClaudeBot 是否遵守 robots.txt?

是。營運者的文件說明 ClaudeBot 會讀取 robots.txt,並遵守針對其標記的 Disallow 規則。規則會在下次擷取該檔案時生效,可能是發布後數小時或數天。

如何核實請求確實來自 ClaudeBot?

Anthropic 公佈單一前綴檔案,涵蓋 ClaudeBot、Claude-User 及 Claude-SearchBot。自稱為 ClaudeBot 但來自這些前綴以外的請求屬於偽造。參考資料發布於 https://claude.com/crawling/bots.json。

如何封鎖 ClaudeBot?

在 robots.txt 中為標記 ClaudeBot加入 Disallow: /。如該爬蟲不遵守 robots.txt,請改為在 CDN 或反向代理伺服器比對 user agent,並在該處回傳 403。

封鎖 ClaudeBot 會否影響我的搜尋排名?

封鎖 ClaudeBot 可使你的網頁不被納入下一輪訓練。此舉不會刪除已收集的內容,亦不會影響網站在一般搜尋中的排名。

    ClaudeBot(Anthropic):User Agent、IP 核實及 robots.txt | IPScanner