Sub topic 10
Controlling how your content is used
This chapter covers the controls you have over how Google uses your pages in Search, including in AI Overviews and AI Mode. It assumes you know what a robots meta tag and a robots.txt file are, and that you understand the basic crawl, index and serve pipeline from earlier chapters.
By the end you should be able to choose between page-level, passage-level and crawler-level controls, and predict what each one does and does not change.
The control surface at a glance
Google exposes three different kinds of control. They act at different points in the pipeline, so mixing them up is the most common error.
- Crawl controls decide whether a crawler may fetch a URL. The main one is robots.txt.
- Index and serving controls decide whether a fetched page can appear in results, and how much of it can be shown. These are robots meta tags, the
X-Robots-TagHTTP header, and thedata-nosnippetattribute. - Product-use controls decide whether content is used for a separate product. The main one is the
Google-Extendedtoken in robots.txt.
The table below summarizes what each control affects.
| Control | Where it lives | What it limits | Affects AI Overviews and AI Mode links? |
|---|---|---|---|
| `Disallow` for Googlebot | robots.txt | Fetching the URL | Indirectly. An unfetchable page cannot be well indexed |
| `noindex` | Meta tag or header | Appearing in the index | Yes. A page not in the index cannot be linked |
| `nosnippet` | Meta tag or header | Any text or video preview | Yes, per Google's documentation |
| `max-snippet:N` | Meta tag or header | Characters of text used in a preview | Yes, per Google's documentation |
| `data-nosnippet` | HTML attribute | One passage on the page | Yes, for the marked passage |
| `Google-Extended` | robots.txt | Gemini training and grounding use | No. Search features are unaffected |
Why snippet controls matter for AI features
A snippet is the text Google shows from your page in a result. Google's documentation says the same snippet controls that govern ordinary results also apply to its AI features in Search. So if you restrict what a snippet may contain, you also restrict what those features may draw from the page for display and for the generated text.
This gives you a practical lever. You can stay in the index, keep earning ordinary links, and still limit how much of your wording is reused.
The trade-off is direct. A tighter limit means less of your content can appear, and a page that shows little text may be less compelling to click or less useful for a generated answer to rely on. Google does not publish how it weighs this, so treat any prediction about ranking effects as unverified.
Page-level controls: nosnippet and max-snippet
You set page-level directives in a robots meta tag in the <head>, or in an X-Robots-Tag HTTP header. The header is the only option for non-HTML files such as PDFs.
The max-snippet directive caps the length of text Google may use, measured in characters.
<meta name="robots" content="max-snippet:50">This tag limits the text Google may use from the page to 50 characters. Google documents that snippet controls like this also apply to its AI features in Search.
Other values change the behavior:
max-snippet:0means no text snippet, which has the same effect asnosnippetfor text.max-snippet:-1means no limit, which is the default.nosnippetblocks text and video previews entirely.
You can combine directives in one tag by separating them with commas.
<meta name="robots" content="max-snippet:120, max-image-preview:large">Here the text preview is capped at 120 characters, and large image previews are allowed. Image and video limits are separate directives, so a text limit does not restrict them.
Setting the directive in a header
For a PDF or any file you cannot edit, send the directive as an HTTP response header.
HTTP/1.1 200 OK
Content-Type: application/pdf
X-Robots-Tag: max-snippet:50The header and the meta tag carry the same directives. If you set both and they conflict, Google applies the more restrictive one.
Passage-level control: data-nosnippet
Sometimes only part of a page is sensitive. You might have a paid-subscriber teaser, a quotation you do not own, or a price table that should only be read on your site. Blocking the whole page would be too blunt.
The data-nosnippet attribute marks one section so Google does not use it in snippets. It works on span, div and section elements.
<p>This sentence may be used in previews.
<span data-nosnippet>This sentence is excluded from snippets.</span>
</p>The first sentence remains eligible for previews. The second is excluded, and the page as a whole is unaffected.
Some gotchas to keep in mind:
- The HTML must be valid and the element must be closed. Google reads the attribute from the parsed page, so broken markup can make it fail.
- Content added by JavaScript after load can be missed if the attribute is added late. Add the attribute in the same step that adds the content, or put it in the server-rendered HTML.
- The attribute marks content, but the content stays in the index. It can still help the page match a query. It just will not be shown in a snippet.
Crawler-level control: Google-Extended
Google-Extended is a robots.txt token, not a separate crawler. It lets you tell Google whether content it has already crawled may be used for certain Gemini uses, such as model training and grounding in Gemini apps and the Gemini API.
User-agent: Google-Extended
Disallow: /This group opts the site out of those Google-Extended uses. It does not remove pages from Search, and it does not remove them from AI Overviews or AI Mode.
That last point is the most frequent misunderstanding. AI Overviews and AI Mode are Search features. They are served from the Search index through Googlebot's crawl, so the Google-Extended token does not govern them. If you want to limit those features, use the snippet controls above, or noindex if you want the page out of Search altogether.
The next diagram shows where each control sits.
Choosing the right control
Start from the outcome you want, then pick the narrowest control that delivers it.
| Goal | Control to use | Side effect |
|---|---|---|
| Keep a page out of Search entirely | `noindex` | No organic traffic from that page |
| Show less of a page's text | `max-snippet:N` | Shorter previews and possibly lower click appeal |
| Hide one passage | `data-nosnippet` | Passage still counts for matching |
| Show no text from a page | `nosnippet` | Result shows a link with no description |
| Keep content out of Gemini uses | `Google-Extended` disallow | None for Search |
Common errors
- Blocking crawling and expecting removal. A robots.txt
Disallowstops fetching. It does not reliably remove a URL from the index, and Google cannot see anoindextag on a page it is not allowed to fetch. To remove a page, leave it crawlable and addnoindex. - Using Google-Extended to opt out of AI Overviews. It does not do that, as covered above.
- Setting
nosnippetand expecting full visibility. Restricting previews can reduce what Google can show or cite. Decide whether the restriction is worth the cost. - Forgetting that controls need time. Google applies a changed directive only after it recrawls the page, so effects are not immediate.
Verifying your setup
Check controls the same way you check anything else Google reads.
- Use the URL Inspection tool in Search Console to confirm the page is crawlable and see how Google fetched it.
- View the live rendered HTML to confirm
data-nosnippetis present after JavaScript runs. - Check response headers with a command-line request for non-HTML files.
curl -sI https://example.com/report.pdf | grep -i x-robots-tagIf the header prints your directive, the server is sending it. If nothing prints, the directive is not set at that URL.
You can also test a robots.txt group programmatically. This Python example uses the standard library to check whether a given user agent token may fetch a path. Note that it evaluates the file's rules as written, and Google may still apply its own product handling.
from urllib.robotparser import RobotFileParser
rules = """User-agent: Google-Extended
Disallow: /
"""
parser = RobotFileParser()
parser.parse(rules.splitlines())
print(parser.can_fetch("Google-Extended", "https://example.com/page"))
print(parser.can_fetch("Googlebot", "https://example.com/page"))The first line prints False, because the group disallows everything for that token. The second prints True, because no group applies to Googlebot and the default is to allow.
Exercises
Exercise
A publisher adds User-agent: Google-Extended with Disallow: / and then finds the site still appears as a supporting link in AI Overviews. Is that a bug, and what would they use to limit how much text from one page is used?
Show answer
It is not a bug. Google-Extended governs Gemini training and grounding uses, not Search features, and AI Overviews are served from the Search index. To limit text from one page, they can use a robots meta tag or header with max-snippet:N or nosnippet. To exclude one passage, they can wrap it in an element with data-nosnippet.
Exercise
You want a PDF kept in Search results but with no more than 80 characters of text shown. You cannot edit the file. What do you configure?
Show answer
Send an HTTP response header for the PDF's URL: X-Robots-Tag: max-snippet:80. The meta tag cannot be used because a PDF has no HTML head.
Exercise
A team blocks /old-report/ in robots.txt and adds noindex to the page, expecting it to drop out of Search. Why might it stay listed?
Show answer
Because the page is disallowed in robots.txt, Googlebot cannot fetch it and never sees the noindex tag. The URL can remain indexed from links elsewhere. They should remove the Disallow rule, keep the page crawlable and leave noindex in place until it is dropped.