Skip to the content
searchboar.

Crawling and indexing

What are search snippet controls?

Search snippet controls are page-level or text-level settings that limit how a search engine may display excerpts from content, without necessarily excluding the whole page from indexing.

Also known as: nosnippet · max-snippet · data-nosnippet · snippet restrictions

At a glance

  • Snippet restrictions affect excerpts; noindex serves the different purpose of excluding a page.
  • A crawler needs access to the response containing the rule to discover it.
  • A display restriction does not encrypt content or put it behind authentication.
On this page
A selected passage on an accessible page is omitted from a separately displayed search snippet.
Snippet controls can limit the displayed excerpt without excluding the entire page.

What is a search snippet?

The short text beneath a result title can help someone decide whether a page answers their question. A search engine can construct it from page content. The meta description is a possible source, not wording guaranteed to appear for every query.

Snippet controls limit what material can be used or how much can appear. The page can remain accessible to visitors. First decide whether you want to limit an excerpt, exclude one passage or remove the page from search altogether.

How do the main controls differ?

ControlMain scope
nosnippetPrevent a text snippet and apply the associated documented preview restrictions.
max-snippetLimit the permitted length of a text snippet.
data-nosnippetExclude a designated HTML text section from snippets.

A partial exclusion can look like this illustrative HTML:

<span data-nosnippet>This note should not appear in a search snippet.</span>

A visitor can still read the sentence. Sensitive customer information needs appropriate publication and access controls, not a snippet attribute.

How does this relate to Google’s AI features?

Google’s documentation extends these controls to its AI Overviews and AI Mode experiences. In particular, nosnippet also restricts using the content as direct input for those features.

That describes Google’s specified services. It is not a universal rule binding every AI system. AI Overviews and featured snippets are also distinct presentations.

A restrictive setting can affect how content is used, but it should not be described as one universal “AI visibility” switch. Read each rule within its documented scope.

An example: a dated note within a useful guide

Imagine a consultant publishing a detailed funding guide. A short note explains that an older program is closed. The editor does not want that isolated sentence to become the description of the broader, still-useful guide.

Excluding the note from snippets may be reasonable. However, first check that the title and main content do not falsely suggest the closed program remains available. A snippet control cannot repair a misleading page; it only limits some of the material used in its presentation.

Why must the crawler reach the page?

If robots.txt prevents crawling, Google may not read the page’s snippet controls. The same access issue matters for discovering noindex.

Adding several restrictions does not necessarily make them more effective: one can prevent another from being seen. Inspect the actual HTML and HTTP headers, including both template-wide and page-specific rules. Entering a value in an editor is not proof it appears in the published response.

Define the intended outcome clearly, implement the matching rule and verify what is served. A search engine may need to recrawl and process the page before presentation changes. Correct delivery of the rule is directly testable; the exact next-day excerpt remains dependent on search processing.

Sources

  1. Google Search: robots meta, data-nosnippet and X-Robots-Tag
  2. Google Search: blocking indexing
  3. Google Search: image SEO best practices