Sub topic 10
Controlling How Your Content Is Used
Assume you know what crawling, indexing, HTML meta tags, and robots.txt do. This chapter focuses on a narrower question: after Google can find a page, how can you limit the text it uses in search previews and AI features?
Google provides several controls. They work at different scopes, so choose one based on the content you want to protect.
Control text at the page level
The robots meta tag tells search engines how to use a particular page. The nosnippet directive prevents Google from showing a text snippet for the page. Google also documents it as a control for preventing content from being used as a direct input for AI Overviews and AI Mode.
<meta name="robots" content="nosnippet">Use max-snippet when Google may use a short text preview but should not use more than a specified number of characters.
<meta name="robots" content="max-snippet:50">The number is a character limit, not a word limit. A limit of 0 is treated like nosnippet. A larger value gives Google more room to create a preview, but it does not force Google to use the maximum.
You can combine directives in one tag:
<meta name="robots" content="max-snippet:50, noimageindex">The second directive is unrelated to text. It prevents image indexing for that page. Keep each directive only when you understand its separate effect.
Exclude one passage with `data-nosnippet`
Sometimes a page contains useful public information and one passage that should not appear in search previews. The data-nosnippet attribute marks a specific HTML element as unavailable for snippets.
<p>This sentence may be used in previews.
<span data-nosnippet>This sentence is excluded from snippets.</span>
</p>The attribute applies to the content inside that element. It is useful for temporary notices, internal labels, sensitive quotations, or other sections that should remain visible to page visitors but should not be selected for a preview.
This control does not remove the element from the page. A visitor can still read it, and Google can still crawl the surrounding page. It controls snippet use, not access control.
Understand `robots.txt` and Google-Extended
robots.txt has a different purpose. A Google-Extended group controls whether Google-Extended may use content for certain generative AI activities, such as Gemini model training and grounding.
User-agent: Google-Extended
Disallow: /This rule does not remove pages from Google Search. It also does not opt a page out of appearing in AI Overviews or AI Mode. Search crawling, Search indexing, Search snippets, and Google-Extended uses are related but separate systems.
A robots.txt rule can also block ordinary Google Search crawling, but that has broader consequences. If Google cannot crawl a page, it may not discover updated content or reliably evaluate the page. Do not use a broad crawl block when your actual goal is only to limit a passage in a preview.
Choose the smallest effective control
| Goal | Suitable control | Scope |
|---|---|---|
| Exclude one passage from snippets | `data-nosnippet` | One HTML element |
| Limit preview text | `max-snippet` | Page text used in snippets |
| Prevent text snippets for a page | `nosnippet` | Whole page |
| Limit Google-Extended uses | `robots.txt` with `Google-Extended` | Site paths for that crawler |
Test the rendered HTML, not only a template file. Confirm that the meta tag reaches the page, that the attribute surrounds the intended text, and that your robots.txt group is available at the site root. Search systems may take time to recrawl and apply changes.
Exercise
You want a page to remain searchable, but you do not want one customer quotation to appear in previews. Which control should you start with?
Show answer
Put the quotation inside an element with data-nosnippet. This limits snippet use for that passage without blocking crawling or removing the page from Search.