# AI 概览与 AI 模式的摘要控制

> Google 的 robots meta 规则同样适用于 AI 概览和 AI 模式。nosnippet 阻止内容被直接用作输入，max-snippet 限制可用的内容量，data-nosnippet 排除页面局部，noindex 把页面移出搜索。只想退出 AI 功能而保留传统结果，可用 Search Console 全站范围的「搜索生成式 AI 控制」。

- URL: https://geo.casa/zh-cn/crawling-indexing/snippet-controls/
- 参考 · 官方文档已说明
- 审核于: 2026-10-25

## 控制方式

| 规则 | 位置 | 对 AI 概览和 AI 模式的作用 |
|---|---|---|
| `nosnippet` | `<meta name="robots">` 或 `X-Robots-Tag` 响应头 | 不显示文字摘要，内容也不会被直接用作输入 |
| `max-snippet:[数字]` | 同上 | 限制摘要长度，以及可直接用作输入的内容量 |
| `data-nosnippet` | HTML 元素的属性 | 这些元素中的文字不进入摘要 |
| `noindex` | 同 `nosnippet` | 页面完全从 Google 搜索中移除 |

> **官方文档已说明:**
> `nosnippet`：「不要在此页面的搜索结果中显示文字摘要或视频预览。」Google 说明这适用于所有形式的搜索结果，包括 AI 概览和 AI 模式。它还会阻止内容被直接用作 AI 概览和 AI 模式的输入。
>
> 参考来源: [Google Search Central: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag)

> **官方文档已说明:**
> `max-snippet:[数字]` 设置文字摘要的最大字符数。它同样适用于 AI 概览和 AI 模式，「并且还会限制可直接用作 AI 概览和 AI 模式输入的内容量」。
>
> 参考来源: [Google Search Central: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag)

> **官方文档已说明:**
> Google 的 AI 功能指南将 `nosnippet`、`data-nosnippet`、`max-snippet` 和 `noindex` 列为「限制页面在搜索中展示的信息」的控制方式，而 Google-Extended 只针对 Google 的*其他* AI 系统。
>
> 参考来源: [Google Search Central: AI features and your website](https://developers.google.com/search/docs/appearance/ai-features)

## 示例

```html
<!-- 整页：不显示摘要，也不作为 AI 功能的直接输入 -->
<meta name="robots" content="nosnippet">

<!-- 整页：摘要最多 160 个字符 -->
<meta name="robots" content="max-snippet:160">

<!-- 页面的一部分 -->
<p>会出现在摘要中。<span data-nosnippet>不会出现在摘要中。</span></p>
```

对于非 HTML 文件，可以用 HTTP 响应头发送相同的规则：`X-Robots-Tag: nosnippet`。

## 爬虫必须能读到这些规则

> **官方文档已说明:**
> 这些设置「只有在爬虫被允许访问包含这些设置的页面时，才能被读取和遵循」。被 robots.txt 屏蔽的页面无法告诉 Google `nosnippet` 或 `noindex`。
>
> 参考来源: [Google Search Central: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag)

## 取舍

- `nosnippet` 同时会去掉传统搜索结果中的摘要，通常会降低点击率。如果只想退出 AI 功能，请改用 Search Console 中全站范围的 [搜索生成式 AI 控制](https://geo.casa/zh-cn/ai-search/search-generative-ai-control/)（2026 年 8 月 31 日前已向所有网站推出）。
- 修改要等 Google 重新抓取页面后才会生效；可以用网址检查工具查看 Googlebot 实际获取到的内容。

## 相关条目

- [Google-Extended](https://geo.casa/zh-cn/crawling-indexing/google-extended/)：控制 Gemini 训练与依据生成，不控制搜索。
- [robots.txt](https://geo.casa/zh-cn/crawling-indexing/robots-txt/)：控制抓取，不控制展示内容。

## 参考来源

- [Google Search Central: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag)
- [Google Search Central: AI features and your website](https://developers.google.com/search/docs/appearance/ai-features)
- [Google Search Central: Block Search indexing with noindex](https://developers.google.com/search/docs/crawling-indexing/block-indexing)
