If you want some say over how Google's AI features use your pages, the most precise tools you have are not new at all. The nosnippet, max-snippet and data-nosnippet rules have controlled search snippets for years, and Google's documentation now states plainly that they also govern how content is used as a direct input for AI Overviews and AI Mode.
That makes them powerful, and risky. Applied carelessly, they can strip the descriptive text from your classic search listings, make your pages ineligible as AI citations, and reduce clicks in ways that are hard to diagnose later. Applied surgically, they can keep a pricing table, a members-only excerpt or a legal disclaimer out of AI answers while the rest of the page performs normally.
This guide explains each documented control, how it applies to AI features in October 2026, what it costs you in visibility, and how to implement it safely with tested code examples. We also explain how these page-level rules relate to the site-level AI setting Google added to Search Console in 2026.
Key Takeaways
- Google documents that
nosnippetapplies to all forms of search results, including AI Overviews and AI Mode, and prevents content being used as a direct input for them. max-snippet:[number]limits how much text can be shown and, per Google, how much can be used as a direct input for AI Overviews and AI Mode.data-nosnippethides specific parts of a page and works only onspan,divandsectionelements.- To be shown as a supporting link in AI features, a page must be indexed and eligible to be shown with a snippet, so heavy restrictions reduce AI visibility.
- Since 2026 a separate site-level Search Console setting lets you opt out of AI Overviews, AI Mode and AI Overviews in Discover; it is a different tool from page-level preview rules.
The documented preview controls
Google's robots meta tag specification defines the rules below. You can set them in a <meta name="robots"> tag, in a crawler-specific tag such as <meta name="googlebot">, or in an HTTP header via the X-Robots-Tag, which is the only option for PDFs and other non-HTML files.
| Control | Where it goes | What it does in classic results | Documented effect on AI Overviews / AI Mode |
|---|---|---|---|
nosnippet | Robots meta tag or X-Robots-Tag | No text snippet or video preview | Content not used as a direct input; Google lists AI Overviews and AI Mode among affected surfaces |
max-snippet:[number] | Robots meta tag or X-Robots-Tag | Snippet capped at the set number of characters | Limits how much content may be used as a direct input |
data-nosnippet | HTML attribute on span, div, section | Marked text excluded from snippets | Marked text excluded as a snippet source (Google lists it among AI preview controls) |
max-image-preview | Robots meta tag or X-Robots-Tag | Controls image preview size (none, standard, large) | Not described as an AI text control |
noindex | Robots meta tag or X-Robots-Tag | Page removed from results | Page cannot appear anywhere in Search, including AI features |
“Do not show a text snippet or video preview in the search results for this page.”
— Google Search Central, Robots meta tag specifications
Google's AI features and your website page lists exactly these tools (nosnippet, data-nosnippet, max-snippet and noindex) as the way to limit what Search shows from your pages. It also notes that changes only take effect after Google recrawls the page, which can take days to months.
How conflicting rules are resolved
Pages often end up with more than one rule, for example a CMS default plus a plugin setting. Google's specification is clear about what happens:
“In the case of conflicting robots rules, the more restrictive rule applies.”
— Google Search Central, Robots meta tag specifications
So a page carrying both max-snippet:50 and nosnippet is treated as nosnippet. Audit templates for stray rules before assuming your intended limit is in force.
The visibility cost of each control
Every restriction has a price. Google states that to appear as a supporting link in AI Overviews or AI Mode, a page must be indexed and eligible to be shown in Search with a snippet. Remove the snippet and you remove that eligibility. Shorten it and you give Google less material to cite. If you are already losing traffic to AI answers, weigh these costs carefully before adding more restrictions.
| Approach | Protection level | Visibility cost | Good fit for |
|---|---|---|---|
| No restrictions | None | None | Most business, service and ecommerce pages |
data-nosnippet on selected blocks | Targeted | Low: the rest of the page stays eligible | Prices that change daily, legal small print, gated excerpts |
max-snippet with a moderate value | Partial | Medium: shorter listings, less citable text | Publishers wanting to limit reuse while keeping visibility |
nosnippet page-wide | High | High: no snippet and no AI citation eligibility | Premium content where reuse outweighs search traffic |
| Search Console AI opt-out (site-wide) | High, AI features only | No traffic or impressions from generative AI Search features | Sites with a clear policy of not participating in AI Search |
noindex | Total | Page disappears from Search | Thin, private or duplicate pages, not AI control |
Note that these controls apply to Google Search. They do not stop Gemini model training or grounding in Gemini Apps; that is the job of the Google-Extended robots.txt token, explained in our Google-Extended guide.
Safe implementation examples
Exclude one block of text with data-nosnippet
<p>Our standard service includes a full site audit.</p>
<div data-nosnippet>
<p>Promotional rate valid until Friday for new customers only.</p>
</div>
Because Google supports the attribute only on span, div and section, wrap the text in one of those elements rather than adding it to a p or table directly. Make sure the HTML is valid and closed properly, or more text than intended may be affected.
Cap snippet length
<meta name="robots" content="max-snippet:160">
A value of 0 behaves like nosnippet, while -1 means no limit. Pick a number deliberately and document why.
Apply nosnippet to a PDF via HTTP header
X-Robots-Tag: nosnippet
Rules specified without a user agent are valid for all crawlers. To target only Google, use X-Robots-Tag: googlebot: nosnippet.
A step-by-step rollout process
- Define the goal. Write down exactly what you want to keep out of AI answers and why: a price, an excerpt, a full article.
- Choose the narrowest tool. Prefer
data-nosnippeton a block over a page-wide rule, and a page-wide rule over a site-wide opt-out. - Benchmark first. Export clicks, impressions and CTR for affected URLs from Search Console, including the newer generative AI reporting if your property has it.
- Implement on a test template. Roll out to a small set of URLs before a whole section.
- Confirm Googlebot sees it. Use the URL Inspection tool, as Google recommends, to check the rendered HTML or response headers contain the rule.
- Request recrawling. Ask Google to recrawl key URLs, then allow time; Google notes recrawling can take days to months.
- Measure for 4 to 8 weeks. Compare against your benchmark and decide whether to expand, adjust or roll back.
Common mistakes
- Using nosnippet to "fix" AI Overviews traffic loss. It removes your eligibility as a cited source, which usually makes the traffic problem worse.
- Placing data-nosnippet on unsupported elements. Only
span,divandsectionare documented. - Hiding the answer you want to rank for. If the best passage on the page is excluded, Google will cite someone else. Read our guide to answer-first writing to structure citable passages.
- Forgetting non-HTML files. PDFs need the X-Robots-Tag header; a meta tag cannot be added to them.
- Confusing controls.
noindexis not an AI control; it removes the page from Search entirely. See our noindex guide. - Not checking plugins. SEO plugins and CDN rules can inject conflicting robots values; the most restrictive wins.
For publishers specifically, these decisions sit inside a wider content strategy, covered in AI search for publishers.
Related Guides
- Do AI Crawlers Render JavaScript? Making JS Sites Readable to LLMs
- Finding AI Bots in Your Server Logs: A Practical Guide
- Fake AI Bots: How to Verify GPTBot, ClaudeBot and PerplexityBot Requests
Frequently Asked Questions
Does nosnippet stop my page appearing in AI Overviews?
Google documents that nosnippet applies to AI Overviews and AI Mode and prevents the content being used as a direct input. Because a page must be eligible for a snippet to appear as a supporting link, nosnippet effectively removes that eligibility.
Will nosnippet hurt my rankings?
It does not remove the page from Search, but listings without a snippet are less informative and usually attract fewer clicks, and the page loses eligibility as an AI citation.
Which elements support data-nosnippet?
Google supports the data-nosnippet attribute on span, div and section elements.
What is the difference between these controls and the Search Console AI setting?
Preview controls work per page or per block of text and also affect classic snippets. The 2026 Search Console setting works at site level and covers AI Overviews, AI Mode and AI Overviews in Discover; Google says it is not a ranking signal for other results.
Do snippet controls stop Gemini from training on my content?
No. Gemini training and grounding in Gemini Apps are governed by the Google-Extended robots.txt token, not by snippet rules.
Conclusion
Snippet controls give you real, documented influence over how AI Overviews and AI Mode use your content, but every restriction reduces your chances of being cited. Use the narrowest control that meets your goal, test it on a small set of pages and measure the result. If you want help reviewing robots rules, templates and AI visibility together, our on-page optimization service covers it. Request a quote and tell us what you want to protect.
References
- Robots meta tag, data-nosnippet and X-Robots-Tag specifications - Google Search Central
- AI features and your website - Google Search Central
- New opportunities, control and insights for website owners - Google (June 2026, updated August 2026)
- Google's common crawlers (Google-Extended) - Google Search Central




