Design snippet control policy: nosnippet, max-snippet, previews.
- User
Design snippet control policy: nosnippet, max-snippet, previews.
Assistant
Design snippet control policy: nosnippet, max-snippet, previews.
The user wants a design for a "snippet control policy" involving three specific directives: nosnippet, max-snippet, and a new one, previews.
Analyze the Request:
X-Robots-Tag HTTP header or <meta name="robots"> tag).nosnippet, max-snippet, and previews.nosnippet and max-snippet are standard, but "previews" is often context-specific or part of a newer proposal like max-video-preview or max-image-preview, though the user specifically said "previews").Clarification on "previews":
nosnippet, max-snippet, max-image-preview, max-video-preview.previews. This likely refers to the concept of controlling previews (images/video) or perhaps a specific, less common, or proposed directive. However, standard HTML/Meta tag policy usually splits this into max-image-preview and max-video-preview.max-image-preview and max-video-preview directives to provide a complete and technically accurate answer. If the user literally means a directive called previews, it doesn't currently exist in the Google/Googlebot standard spec (which is the most common context). I will assume they want to control all types of previews (text, image, video) or are referring to the specific max-image-preview/max-video-preview logic.Structure the Design: I should present this as a technical specification or a style guide for implementation. It needs to be clear, syntactically correct, and explain the behavior.
<meta> tags is the most common way, but mentioning the HTTP Header (X-Robots-Tag) is good practice for completeness.nosnippet: The nuclear option.max-snippet: The text limiter.Drafting the Content:
Scenario 1: nosnippet
<meta name="robots" content="nosnippet">noarchive).Scenario 2: max-snippet
<meta name="robots" content="max-snippet:50">Scenario 3: previews (The ambiguous one)
max-image-preview and max-video-preview.max-image-preview:[size] (standard, none, large).max-video-preview:[number] (seconds).Synthesizing a "Policy Design": Instead of just listing tags, I should design a policy—meaning, rules for when to use which.
nosnippet.max-snippet.max-image-preview / max-video-preview.data-nosnippet? That's for HTML elements. I should mention that too.Refining the "previews" interpretation: Since the user grouped "previews" with standard text snippet controls, they likely mean controlling the thumbnail previews often associated with snippets.
max-image-preview and max-video-preview to ensure the answer is actionable code.Final Output Structure:
nosnippet: Usage, syntax, implications.max-snippet: Usage, syntax, values.previews (Media): Mapping to max-image-preview and max-video-preview.Self-Correction during drafting: I need to make sure I don't confuse nosnippet with noindex. nosnippet allows the page to appear in results, but without a text preview (just the link). noindex removes the page entirely. The user asked for nosnippet, so I will stick to that.
Formatting: Use code blocks for syntax. Use bold for emphasis.
(Self-Correction): Is there a specific "previews" directive? There is a preview directive in some specific contexts (like no-preview in some social media crawlers), but in SEO (Google/Bing), it's usually max-image-preview. I will assume the context is SEO/Search Engines but acknowledge the ambiguity.
Let's write out the response following this structure. Here is a design specification for a Snippet Control Policy. This policy governs how third-party services (like search engines, social media platforms, and AI agents) are permitted to display previews of your content.
This design utilizes the Robots Meta Tags and HTTP Headers standards.
Objective: To define the permissions for text truncation, media display, and content caching to balance content discoverability with traffic protection.
nosnippetEffect: instructs the crawler not to show any text snippet or media preview for this page in search results.
<meta name="robots" content="nosnippet">
max-snippetEffect: Limits the maximum text length (in characters) displayed in the search snippet.
[0-N] (Integer).
0: Equivalent to nosnippet.1-N: Limits the description to roughly that many characters.<meta name="robots" content="max-snippet:160">
previews (Media Control)While nosnippet and max-snippet handle text, "previews" in this context refers to visual media (images and video thumbnails). This maps to the max-image-preview and max-video-preview standards.
1. Image Previews (max-image-preview)
none, standard, large.
none: No image thumbnail shown.standard: Default thumbnail size.large: Enables "Deep Link" style large hero images.<meta name="robots" content="max-image-preview:standard">
2. Video Previews (max-video-preview)
none or [0-N] (seconds).<meta name="robots" content="max-video-preview:15">
You can apply these policies at two levels: Page-Level (HTML) or Site-Level (HTTP Headers).
Goal: Allow indexing and small previews, but truncate text to force clicks.
<!-- Allow up to 120 chars of text, standard images, no video playback -->
<meta name="robots" content="max-snippet:120, max-image-preview:standard, max-video-preview:0">
Goal: Optimized for visual discovery (Google Discover, Social Sharing) but strict text control.
<!-- Allow large images, but minimal text -->
<meta name="robots" content="max-snippet:80, max-image-preview:large">
Goal: Content is searchable, but no "memory" or extensive preview is kept by the crawler.
HTTP/1.1 200 OK
X-Robots-Tag: nosnippet, noarchive
| Scenario | Policy Behavior | Recommended Setting |
|---|---|---|
| Paywalled Content | You want the snippet to entice, but not reveal the content. | max-snippet:50 combined with structured data (isAccessibleForFree: False). |
| AI Summarization | If an AI agent attempts to summarize your page. | max-snippet:0 effectively prevents text extraction for summaries, though the page remains indexed. |
| Social Sharing (og:image) | These tags control search engine previews, not Facebook/Slack previews. | Use Open Graph tags (<meta property="og:image" ...>) separately for social UX. |
Use this matrix to decide which setting fits your content type:
| Content Type | Text Policy | Image Policy | Video Policy |
|---|---|---|---|
| Breaking News | max-snippet:300 (Maximize context) | max-image-preview:large | max-video-preview:-1 (Unlimited) |
| Evergreen Blog | max-snippet:160 (Standard SEO) | max-image-preview:large | max-video-preview:30 |
| Recipe/How-To | max-snippet:80 (Don't show ingredients) | max-image-preview:large | max-video-preview:none |
| Medical/Financial | nosnippet (Avoid out-of-context advice) | max-image-preview:none | max-video-preview:none |
| Landing Page | nosnippet (Control strictly via Ads/Meta) | nosnippet | nosnippet |