AI 搜尋爬蟲
Googlebot 是由 Google 營運的機械人,會為網頁建立索引,供 AI 答案引擎引用。Googlebot 是 Google Search 背後的爬蟲。此機械人遵守 robots.txt;如請求聲稱來自 Googlebot,可用的核實依據為已公布的 IP 範圍檔案或經正向確認的反向 DNS 查詢。
請求聲稱
"Googlebot/2.1"
核對依據
Google 的IP 範圍及反向 DNS
即時檢查
貼上日誌記錄中的地址,系統會與營運者公布的資料核對。
參考資料
| User agent | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
|---|---|
| 營運者 | |
| 用途 | 搜尋索引,同時為 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
選擇其中一項,貼到網域根目錄。規則按標記分別設定。
User-agent: Googlebot
Disallow: /User-agent: Googlebot
Allow: /User-agent: Googlebot
Allow: /
Disallow: /account/
Disallow: /checkout/
Disallow: /search請修改 Disallow 路徑,使其符合你的網址。
FAQ
Googlebot 是由 Google 營運的機械人,會為網頁建立索引,供 AI 答案引擎引用。Googlebot 是 Google Search 背後的爬蟲。此機械人遵守 robots.txt;如請求聲稱來自 Googlebot,可用的核實依據為已公布的 IP 範圍檔案或經正向確認的反向 DNS 查詢。
是。營運者的文件說明 Googlebot 會讀取 robots.txt,並遵守針對其標記的 Disallow 規則。規則會在下次擷取該檔案時生效,可能是發布後數小時或數天。
兩種方法:對來源 IP 進行反向 DNS 查詢,結果必須為 googlebot.com 或 google.com 主機,且對該主機進行正向查詢必須傳回相同 IP;或該 IP 必須列於 googlebot.json 中。參考資料發布於 https://developers.google.com/static/search/apis/ipranges/googlebot.json。
在 robots.txt 中為標記 Googlebot加入 Disallow: /。如該爬蟲不遵守 robots.txt,請改為在 CDN 或反向代理伺服器比對 user agent,並在該處回傳 403。
封鎖 Googlebot 會使網站從其答案所依據的索引中移除,網站將不再被引用。如你重視來自 AI 答案的轉介流量,請改為封鎖訓練用爬蟲,並保留此爬蟲。