Snippet controls

nounalso called nosnippet, max-snippet or data-nosnippet

Definition

Snippet controls are robots directives and HTML attributes — nosnippet, max-snippet and data-nosnippet — that limit how much of a page search engines may quote in results, and in Google they also limit what AI Overviews and AI Mode can use.

Updated 6 min read6 cited sources

On this page8 sections

Why it matters for founders and small teams

One stray nosnippet in a template can quietly remove every page it touches from Google’s AI Overviews and AI Mode, and most teams only notice when AI referrals dry up. Used on purpose, the same controls let you keep a sensitive passage — a negotiated price, a gated excerpt — out of AI answers without taking the page out of search.

How do snippet controls work?#

Snippet controls work as robots rules in a meta tag or X-Robots-Tag header — nosnippet and max-snippet:[n] apply to the whole page — or as a data-nosnippet attribute on individual elements, telling search engines how much text they may show or quote from that page.

html
<!-- No text snippet anywhere, and no input to AI Overviews or AI Mode -->
<meta name="robots" content="nosnippet">
 
<!-- Cap snippets and AI input at 150 characters -->
<meta name="robots" content="max-snippet:150">
 
<!-- Let Google choose the snippet length and allow large image previews -->
<meta name="robots" content="max-snippet:-1, max-image-preview:large">
 
<!-- Keep one passage out while the rest of the page stays quotable -->
<p>Plans start at $29 a month.</p>
<div data-nosnippet>Enterprise pricing is negotiated per contract.</div>
http
# The same rules as response headers, for PDFs and other non-HTML files
X-Robots-Tag: nosnippet
X-Robots-Tag: googlebot: max-snippet:150
  • The strictest rule wins. If a page carries both max-snippet:50 and nosnippet, Google applies nosnippet.
  • data-nosnippet works only on span, div and section elements, and an unclosed element hides everything after it. Don’t add or remove it with JavaScript: Google may read it before or after rendering.
  • The crawler has to see the rule. A page blocked in robots.txt never has its meta tags read, so its snippet rules are ignored.
  • The same rules govern featured snippets. nosnippet or data-nosnippet keeps text out of them; a low max-snippet alone doesn’t guarantee it.

Do snippet controls affect AI Overviews and AI Mode?#

Snippet controls directly govern Google’s AI Overviews and AI Mode: nosnippet stops a page being used as a direct input to them, max-snippet limits how much they may use, and data-nosnippet removes a passage. Google also requires a page to be snippet-eligible before it can appear as a supporting link at all.

Google’s robots meta specification names the AI features outright. nosnippet “applies to all forms of search results (at Google: web search, Google Images, Discover, AI Overviews, AI Mode) and will also prevent the content from being used as a direct input for AI Overviews and AI Mode.” max-snippet “will also limit how much of the content may be used as a direct input” to both.

ControlAI Overviews & AI ModeClassic resultsGemini app
nosnippetNot used as inputNo text snippetNot documented
max-snippet:[n]Input capped at n charactersSnippet cappedNot documented
data-nosnippetThat passage excludedPassage excludedNot documented
Search Console: Search generative AI → ExcludeRemovedUnaffectedNot covered
noindexRemovedRemovedRemoved
Google-Extended disallowedUnaffectedUnaffectedGrounding and training off

Rankbox framework

The Snippet Control Ladder

Five controls ordered from the narrowest to the widest. Start at the lowest rung that solves the problem — each step up removes more of your content from answers you may still want to be in.

  1. 01

    Rung 1: data-nosnippet

    Hides one passage from snippets and AI input while the rest of the page stays quotable. For negotiated prices, internal notes and gated excerpts.

  2. 02

    Rung 2: max-snippet

    Caps how much text Google may quote or feed to its AI features. For licensed text where a short preview is fine — keep the number generous if you want to be cited.

  3. 03

    Rung 3: Search generative AI → Exclude

    Removes a property from AI Overviews, AI Mode and Discover’s AI features but keeps classic results and snippets. A URL-prefix property can scope it to one folder.

  4. 04

    Rung 4: nosnippet

    No text snippet anywhere in Google and no AI input — the page becomes a bare link. On Bing, the AI-specific equivalents are nocache and noarchive.

  5. 05

    Rung 5: noindex

    Out of search entirely. The only rung documented to work beyond Google and Bing: OpenAI tells sites to use it to stay out of ChatGPT search, and it keeps pages out of Brave, Claude’s search provider.

How to use it: Most teams that need snippet controls at all need only rung 1. If an audit finds rung 2 or rung 4 in a site-wide template, treat it as a bug until someone can name the answer engine it was meant to keep out.

Free to use and adapt. If you cite it, link to rankbox.xyz/glossary/snippet-controls.

How do you opt out of AI Overviews without leaving Google Search?#

To opt out of AI Overviews without leaving Google Search, set Search Console’s Search generative AI setting to Exclude, which since 31 August 2026 removes a property from AI Overviews, AI Mode and Discover’s AI features while leaving regular results untouched. nosnippet also works, but strips your snippets everywhere.

GoalBest controlTrade-off
Leave AI Overviews and AI Mode, keep classic listingsSearch Console → Settings → Search generative AI: ExcludePer property; takes a few days; doesn’t cover the Gemini app
Keep one passage out of every snippet and AI answerdata-nosnippet on that elementNone for the rest of the page
Keep a page’s text out of all Google snippetsnosnippetA bare blue link in classic results too
Keep content out of Gemini-app grounding and trainingDisallow Google-Extended in robots.txtNo effect on AI Overviews or Search
Remove the page from Google entirelynoindexGone from every Google surface

Google’s caveat applies to all of them: the crawler has to see the change, and recrawling “can take anywhere from several days to several months.” Check what Googlebot received with URL Inspection in Search Console, and request a recrawl for pages that can’t wait. See Google-Extended for the Gemini side and AI Overviews for how the feature picks sources.

Do Bing, ChatGPT, Claude and Perplexity honor snippet controls?#

Bing has its own AI controls — noarchive keeps a page out of its AI chat answers and nocache limits them to the URL, title and snippet — while OpenAI, Anthropic and Perplexity document no snippet controls at all; for them, the levers are robots.txt and noindex.

EngineControlWhat it does
Bing — CopilotnoarchiveNot included in or linked from Bing’s AI chat answers, and not used to train Microsoft’s generative models
Bing — CopilotnocacheMay appear in AI chat answers, but only as URL, title and snippet
Bing — CopilotBoth togetherTreated as nocache
ChatGPT searchNone documentedOpenAI says to use noindex to keep a page out; a disallowed URL can still surface as a link and title
ClaudeNone documentedEach citation quotes up to 150 characters of the page
PerplexityNone documentedEven with PerplexityBot blocked, it may show the domain, headline and a brief summary

Bing announced its two controls in September 2023 for what was then Bing Chat. Note the split with Google, whose robots specification lists noarchive and nocache among rules it no longer uses — so a single robots meta tag can mean different things to different engines. For the AI engines with no snippet controls, crawler access is the real switch: see AI crawlers.

Common mistakes with snippet controls#

The most common snippet control mistakes are a nosnippet or tiny max-snippet left in a site-wide template, blocking a page in robots.txt so its rules are never read, relying on Google-Extended to leave AI Overviews, and wrapping so much in data-nosnippet that nothing quotable is left.

Myth

Blocking Google-Extended keeps me out of AI Overviews.

Reality

It governs Gemini training and Gemini-app grounding only. For AI Overviews, use the Search Console setting, nosnippet or noindex.

Myth

A robots.txt Disallow is the safest way to hide content.

Reality

Google can index a blocked URL without its content, and it can’t read snippet rules on a page it can’t crawl. Allow the crawl and use nosnippet or noindex.

Myth

noarchive still controls Google's cached copies.

Reality

Google retired cached links and ignores noarchive. Bing, by contrast, uses it to keep pages out of its AI chat answers.

Myth

Snippet rules are set-and-forget.

Reality

Search your templates for nosnippet, low max-snippet values and data-nosnippet after every redesign. Each one throttles what AI features can use.

Sources

  1. 1.Robots meta tag, data-nosnippet, and X-Robots-Tag specificationsGoogle Search Central · developers.google.com
  2. 2.AI features and your websiteGoogle Search Central · developers.google.com
  3. 3.Search generative AI controlSearch Console Help · support.google.com
  4. 4.Featured snippets and your websiteGoogle Search Central · developers.google.com
  5. 5.Announcing new options for webmasters to control usage of their content in Bing ChatMicrosoft Bing · blogs.bing.com
  6. 6.Publishers and developers FAQOpenAI Help Center · help.openai.com

Know someone who’d find this useful? Send it their way.

Written by

Rankbox Team

The team behind Rankbox. We study how ChatGPT, Perplexity, Gemini, and Google AI Overviews choose their sources, and publish what we learn so you can put it to work.

See which AI answers cite you today

Enter your site to see how often ChatGPT, Perplexity, Gemini, and Google cite your brand, and exactly what to publish next.

No credit card required · Free 7-day trial