助手抓取器

GoogleAgent-URLContext

GoogleAgent-URLContext 是由 Google 运营的机器人,它会按需为 AI 助手抓取单个网页。GoogleAgent-URLContext 是由 Google 运营的网页抓取器,代表 Gemini API 用户获取网页内容。运营方未公布 IP 范围列表或反向 DNS 规则,因此无法证明带有此 user agent 的请求是真实的,仅靠 robots.txt 规则也无法阻止伪造请求。

Google仅自称robots.txt:未声明

实时检查

验证自称 GoogleAgent-URLContext 的 IP

GoogleAgent-URLContext 没有可供核验的运营方信息。此处仍会显示该地址的真实情况。

参考

GoogleAgent-URLContext 概览

GoogleAgent-URLContext 爬虫参考数据
User agentGoogleAgent-URLContext

仅为标识符:按子串匹配。

运营方Google
用途助手抓取器
是否遵守 robots.txt未声明
验证方法仅自称未公布,仅凭 user agent

该代理尚未公布 IP 范围文件或反向 DNS 约定。user agent 字符串是唯一的识别依据,而任何客户端都可以发送该字符串,因此匹配结果只能视为一种声称,不能作为证明。

抓取模式未公布
robots.txt 标识符GoogleAgent-URLContext
运营方文档https://developers.google.com/search/docs/crawling-indexing/overview-google-crawlers

GoogleAgent-URLContext 是由 Google 运营的网页抓取器,代表 Gemini API 用户获取网页内容。当开发者在 Gemin……

robots.txt

允许或屏蔽 GoogleAgent-URLContext

选择一项粘贴到域名根目录下。规则按标识符分别生效。

屏蔽 GoogleAgent-URLContext
User-agent: GoogleAgent-URLContext
Disallow: /
允许 GoogleAgent-URLContext
User-agent: GoogleAgent-URLContext
Allow: /
允许,但排除你不希望被引用的页面
User-agent: GoogleAgent-URLContext
Allow: /
Disallow: /account/
Disallow: /checkout/
Disallow: /search

请修改 Disallow 路径,使其与你自己的 URL 一致。

屏蔽的实际代价

屏蔽 GoogleAgent-URLContext 后,用户询问你的某个 URL 时将收到错误,而不是摘要。这是在用户支持和声誉之间的取舍,与训练无关。

为所有爬虫生成文件

FAQ

GoogleAgent-URLContext 常见问题

GoogleAgent-URLContext 是什么?

GoogleAgent-URLContext 是由 Google 运营的机器人,它会按需为 AI 助手抓取单个网页。GoogleAgent-URLContext 是由 Google 运营的网页抓取器,代表 Gemini API 用户获取网页内容。运营方未公布 IP 范围列表或反向 DNS 规则,因此无法证明带有此 user agent 的请求是真实的,仅靠 robots.txt 规则也无法阻止伪造请求。

GoogleAgent-URLContext 是否遵守 robots.txt?

无文档说明。运营方未说明 GoogleAgent-URLContext 是否读取 robots.txt,因此请添加规则,并通过日志确认请求确实已停止。

如何验证请求确实来自 GoogleAgent-URLContext?

无法验证,至少无法仅凭请求本身验证。该代理尚未公布 IP 范围文件或反向 DNS 约定。user agent 字符串是唯一的识别依据,而任何客户端都可以发送该字符串,因此匹配结果只能视为一种声称,不能作为证明。可改为将来源 IP 与托管和数据中心的 IP 范围进行比对,并对任何表现得像爬虫的流量进行限速。

如何屏蔽 GoogleAgent-URLContext?

在 robots.txt 中为 GoogleAgent-URLContext 标识添加 Disallow: /。如果该爬虫不遵守 robots.txt,请在 CDN 或反向代理上匹配其 user agent 并返回 403。

屏蔽 GoogleAgent-URLContext 会影响我的搜索排名吗?

屏蔽 GoogleAgent-URLContext 后,用户询问你的某个 URL 时将收到错误,而不是摘要。这是在用户支持和声誉之间的取舍,与训练无关。

    GoogleAgent-URLContext(Google):User Agent、IP 验证与 robots.txt | IPScanner