AI 搜尋爬蟲

Googlebot

Googlebot 是由 Google 營運的機械人,會為網頁建立索引,供 AI 答案引擎引用。Googlebot 是 Google Search 背後的爬蟲。此機械人遵守 robots.txt;如請求聲稱來自 Googlebot,可用的核實依據為已公布的 IP 範圍檔案或經正向確認的反向 DNS 查詢。

GoogleIP 範圍 + DNSrobots.txt:遵守

即時檢查

驗證自稱為 Googlebot 的 IP

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

參考資料

Googlebot 概覽

Googlebot 爬蟲的參考資料
User agentMozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
營運者Google
用途搜尋索引,同時為 AI Overviews 提供內容
遵守 robots.txt遵守來源
驗證方法IP 範圍 + DNS已公布的 IP 範圍或反向 DNS

兩種方法:對來源 IP 進行反向 DNS 查詢,結果必須為 googlebot.com 或 google.com 主機,且對該主機進行正向查詢必須傳回相同 IP;或該 IP 必須列於 googlebot.json 中。

https://developers.google.com/static/search/apis/ipranges/googlebot.json

爬取模式持續進行,並按個別網站調整速率。
robots.txt 標記Googlebot
營運者文件https://developers.google.com/search/docs/crawling-indexing/verifying-googlebot

Googlebot 是 Google Search 背後的爬蟲。它並非 AI 訓練爬蟲,但其索引的網頁可能會在 AI Overviews 中被摘要,並用作 Gemini 的 grounding 依據。因此,封鎖 Google-Extended 而不封鎖 Googlebot,是保留於 Search 之中同時退出訓練的常見做法。

robots.txt

允許或封鎖 Googlebot

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

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

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

封鎖的實際代價

封鎖 Googlebot 會使網站從其答案所依據的索引中移除,網站將不再被引用。如你重視來自 AI 答案的轉介流量,請改為封鎖訓練用爬蟲,並保留此爬蟲。

為所有爬蟲建立檔案

FAQ

Googlebot 常見問題

Googlebot 是甚麼?

Googlebot 是由 Google 營運的機械人,會為網頁建立索引,供 AI 答案引擎引用。Googlebot 是 Google Search 背後的爬蟲。此機械人遵守 robots.txt;如請求聲稱來自 Googlebot,可用的核實依據為已公布的 IP 範圍檔案或經正向確認的反向 DNS 查詢。

Googlebot 是否遵守 robots.txt?

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

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

兩種方法:對來源 IP 進行反向 DNS 查詢,結果必須為 googlebot.com 或 google.com 主機,且對該主機進行正向查詢必須傳回相同 IP;或該 IP 必須列於 googlebot.json 中。參考資料發布於 https://developers.google.com/static/search/apis/ipranges/googlebot.json。

如何封鎖 Googlebot?

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

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

封鎖 Googlebot 會使網站從其答案所依據的索引中移除,網站將不再被引用。如你重視來自 AI 答案的轉介流量,請改為封鎖訓練用爬蟲,並保留此爬蟲。

    Googlebot(Google):User Agent、IP 核實及 robots.txt | IPScanner