Noindex, Nosnippet, Max-Snippet, and X-Robots-Tag for AI Search
Technical SEO July 21, 2026 7 min read

Noindex, Nosnippet, Max-Snippet, and X-Robots-Tag for AI Search

Teams often mix up three different jobs:

  • crawl control
  • index control
  • snippet and preview control

That confusion gets expensive in the AI search era.

A site owner wants a page out of search, blocks it in robots.txt, and then adds noindex inside the page. Google may never see the noindex. Another team wants product pages eligible for search and AI citations, but ships nosnippet sitewide and suppresses the very text Google uses to understand the page.

The practical question is not “which tag is best?” The question is:

Which control matches the outcome you actually want?

This article focuses on page-level visibility controls for Google Search and Google AI features. For crawler-specific access rules, use the separate GPTBot vs OAI-SearchBot vs Googlebot guide. For broader agent policy, pair this with Content Signals and AI Bot Access, AI Overview, and the AI Search Visibility Scorecard.

AI search visibility controls workflow

Start With The Outcome

Choose the control from the desired outcome, not from habit.

GoalBetter controlWhy
Keep a URL crawlable and indexableNo restrictive ruleDo not add controls you do not need
Remove a page from Google Searchnoindex via meta robots or X-Robots-TagGoogle needs to crawl the page to process the rule
Keep page indexed but limit preview textnosnippet, max-snippet, or data-nosnippetControls snippet and AI preview usage boundaries
Block crawling of private pathsrobots.txt, auth, or bothCrawl access and search appearance are separate
Control non-HTML files like PDFsX-Robots-TagHeader-based rule works beyond HTML

The key boundary is simple:

  • robots.txt is about crawl access for compliant bots.
  • noindex is about index eligibility.
  • snippet controls are about how much content can be shown or reused in previews.

Those are related, but they are not interchangeable.

What Google Actually Supports For AI Features

Google’s current AI features documentation points site owners back to existing preview controls, not to a new AI-specific tag. That means the important controls are still:

  • noindex
  • nosnippet
  • data-nosnippet
  • max-snippet
  • max-image-preview

Here is the practical split:

GoalBetter controlWhat it does
Remove the page from Google Search features entirelynoindexRemoves eligibility after Googlebot can crawl and process the page
Prevent any text snippet from appearingnosnippetStops Google from showing a text snippet
Cap how much text Google may showmax-snippet:[number]Limits preview length
Hide only a specific sectiondata-nosnippetExcludes text within specific span, div, or section elements
Control image preview sizemax-image-previewLimits image preview size, often relevant for article and Discover-style surfaces

The mistake to avoid is using one control for the wrong job. nosnippet is not a deindexing control. noindex is not a surgical text-exclusion control. data-nosnippet is not a sitewide policy.

Meta Robots vs X-Robots-Tag

Both can express indexing and snippet rules, but they fit different operational cases.

ControlBest forNotes
<meta name="robots" ...>HTML pages you can edit in templatesEasy for content teams to inspect in source
X-Robots-Tag headerPDFs, images, feeds, generated files, or edge/CDN rulesUseful when HTML head markup is unavailable or inconsistent

HTML example:

<meta name="robots" content="noindex, max-snippet:0">

Header example:

X-Robots-Tag: noindex, nosnippet

Do not add both unless you know why. Conflicting implementations create audit noise and slow debugging.

What Each Snippet Control Actually Does

These directives solve different problems.

DirectivePractical effectTypical use
noindexRemoves the page from Google’s index after processingThin duplicates, staging leaks, retired landing pages
nosnippetPrevents text snippets and limits preview reuseSensitive copy where preview display is not acceptable
max-snippetCaps the amount of text Google can use in previewsPages that should stay searchable but use tighter preview boundaries
data-nosnippetExcludes only marked page sections from snippetsHide phone numbers, licensed excerpts, gated copy intros, or repeated boilerplate

data-nosnippet is often the most practical compromise. You do not need to suppress the entire page just because one block should not be quoted or previewed.

For example:

<p>Public summary that can appear in search.</p>
<div data-nosnippet>
  Internal member benefit details or reusable gated teaser text.
</div>

That is usually better than applying nosnippet to the whole document and losing all summary visibility.

Do Not Use robots.txt As A Search Removal Tool

This is the most common mistake.

If your goal is “remove this URL from Google results,” blocking the page in robots.txt is the wrong first move. Google’s documentation is explicit: for noindex to work, Google must be able to crawl the page and see the rule.

That creates a practical sequence:

  1. Keep the page crawlable long enough for Google to fetch it.
  2. Send noindex via HTML meta robots or X-Robots-Tag.
  3. Verify the rule is really present on the live response.
  4. Only add stronger access restrictions later if your business case requires them.

If the content is truly private, use authentication or a proper permission wall instead of hoping crawler rules will behave like security.

Use Technical SEO, Bot Simulator, and Audit when you need to compare the live response, rendered output, and headers.

Where OpenAI’s Current Guidance Differs

OpenAI’s current official crawler docs and publisher FAQ describe a different control surface:

  • Allow or block OAI-SearchBot for ChatGPT search discovery
  • Allow or block GPTBot for model training access
  • Use noindex if you do not want a page shown as a result, even if the URL is otherwise discovered

That is not the same thing as Google snippet governance.

A practical inference from the current official docs is:

  • Google explicitly documents nosnippet, data-nosnippet, and max-snippet for AI features in Search.
  • OpenAI explicitly documents OAI-SearchBot access and noindex for search inclusion decisions.

So if your team asks, “Will max-snippet:80 also limit ChatGPT summaries?” the honest answer is: do not assume that from current OpenAI documentation.

Treat Google preview controls as Google controls unless another platform documents equivalent behavior. Keep your Google controls separate from your AI crawler policy.

One Important Structured Data Nuance

Google’s robots meta documentation includes an easy-to-miss detail:

  • max-snippet limits text previews.
  • Structured data can still be used for rich results.
  • Structured data remains usable even when it sits inside a data-nosnippet element.

That means data-nosnippet is not a substitute for structured data cleanup.

If a product price, author description, or article summary appears in schema and you do not want Google to use it in a search presentation context, the safer move is to review the actual structured data values, not just wrap visible HTML in data-nosnippet.

This is especially relevant after template releases. If you are debugging that class of issue, the related workflow is Structured Data QA After Template Changes.

A Safe Workflow For Public Content

For normal editorial and product pages, use this order:

  1. Confirm whether the page should stay in Search.
  2. Decide whether the issue is indexing or preview reuse.
  3. Use noindex only when full removal is the goal.
  4. Use nosnippet, max-snippet, or data-nosnippet when the page should remain discoverable but preview behavior needs tighter limits.
  5. Keep the page crawlable if Google still needs to process the rule.
  6. Re-check canonicals, language variants, and internal links before release.

This matters for multilingual sites. If the English page carries a restrictive rule but the Chinese version does not, or if canonicals point across variants incorrectly, your intent becomes harder to predict. Audit /blog/ and /zh/blog/ together.

Five Failure Patterns To Catch

1. robots.txt block plus noindex

If robots.txt blocks the page, Google may never see the noindex.

2. Sitewide nosnippet on pages that need AI visibility

If the business wants visibility in Google Search and AI-powered discovery, a blanket nosnippet rule can work against that goal.

3. Wrong control on PDFs or generated files

If the page is not HTML, meta robots may not be available. Use X-Robots-Tag.

4. Conflicting template and CDN rules

A template says indexable, but the CDN injects X-Robots-Tag: noindex. Operators only see the HTML and miss the live header.

5. Treating one sensitive paragraph as a whole-page problem

If only one quote, disclaimer, or pricing block is sensitive, start with data-nosnippet instead of blanket nosnippet.

Validation Checklist

Before shipping a visibility change, test the live URL:

curl -I https://example.com/page/
curl -L https://example.com/page/ | sed -n '1,120p'

Check:

  • the final HTTP status
  • the presence or absence of X-Robots-Tag
  • the visible meta robots tag in final HTML
  • the canonical URL
  • whether the page is blocked in robots.txt
  • whether only the intended page sections carry data-nosnippet
  • whether the same rule exists on the localized variant where needed

Then review the page with Bot Simulator and Audit so you do not validate only the raw HTML while missing a live header or redirect issue.

Fennec-Style Decision Table

Use this lightweight matrix when the team is unsure:

SituationRecommended action
Private app URL accidentally exposedAdd auth; use noindex if already crawlable
Retired campaign page with backlinksKeep crawlable briefly, add noindex, then review redirect plan
Public article should rank but not expose one sensitive block in previewsUse data-nosnippet on that block
Product page should stay indexable but preview text is too aggressiveTest max-snippet instead of full nosnippet
PDF should not appear in SearchSend X-Robots-Tag: noindex

Good control work is specific. Broad rules create invisible side effects.

Takeaway

The AI search era did not replace standard technical SEO controls. It made correct control selection more important.

Use robots.txt for crawl preferences. Use noindex for removal from Google’s index. Use nosnippet, max-snippet, and data-nosnippet to shape preview reuse more precisely. Use X-Robots-Tag when the asset or delivery layer calls for headers instead of HTML markup.

If you choose the control by the real outcome, you avoid the two expensive mistakes: pages that stay visible when they should not, and pages that disappear when the business still wanted discovery.

Sources

Q&A

Should I use robots.txt to remove a page from Google results?

No. If Google cannot crawl the page, it may not see a noindex rule. Use noindex or access controls when the goal is search removal.

Do snippet controls also matter for Google's AI features?

Yes. Google says preview controls such as nosnippet, data-nosnippet, and max-snippet apply to AI-powered experiences as well as traditional search results.

When is X-Robots-Tag better than a meta robots tag?

Use X-Robots-Tag when you need header-based control for PDFs, images, feeds, or templates where editing HTML head markup is awkward.

Do Google snippet controls automatically apply to ChatGPT search?

Do not assume that. Google's documentation explicitly supports nosnippet, data-nosnippet, and max-snippet for Google AI features, while OpenAI's current guidance focuses on OAI-SearchBot access and noindex.

Privacy & Cookies

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.