Google 运行着多个爬虫。主要的爬虫包括 Googlebot Smartphone(用于索引的主要爬虫)、Googlebot Desktop、Googlebot Image、Googlebot Video,以及用于 AdsBot 和用户触发抓取的独立代理。
验证至关重要
User-agent 字符串极易伪造。抓取工具经常冒充 Googlebot 以绕过速率限制。请通过对请求 IP 进行反向 DNS 查询进行验证,该 IP 必须解析为 googlebot.com 或 google.com,然后再进行一次正向查询以确认指向同一 IP。Google 也会以 JSON 格式发布其 IP 范围。

抓取速率
Google 会根据服务器响应自动调整抓取速率。持续的 5xx 错误或缓慢的响应会导致其降低抓取频率。Search Console 中已不再提供手动设置抓取速率的功能;如果需要紧急降低速率,请返回 503 或 429 状态码,但仅限短时间使用,因为持续的 5xx 响应会导致页面被移除索引。
Alien Road 建议:在拦截前务必先进行验证。我们曾多次受邀解决“Googlebot 正在攻击服务器”的问题,结果发现是有人仅凭 User-agent 匹配规则,导致真正的 Googlebot 被拦截。请通过 DNS 进行验证,放行真正的 Googlebot,并对冒充者进行速率限制。

How we apply this
Verifying crawler identity matters when a client’s security team starts blocking traffic. We have seen legitimate Googlebot requests blocked by a firewall rule, which removes a site from the index within weeks.
Related services