Hướng dẫn về max-snippet & previews

Cách đó three robots preview directives cap của bạn text snippet, image-preview size, và video-preview length trong Google và Bing — và đó AI-Overview tradeoff.

Xuất bản lần đầu: 23 thg 6, 2026 · Cập nhật lần cuối: 8 thg 8, 2026 · Advanced
Ngôn ngữ
1 tín hiệu bằng chứng trên trang này

max-snippet, max-image-preview, và max-video-preview là robots directives đó control cách nhiều of một trang Google và Bing có thể cho thấy trong một kết quả — họ là display controls, không lập chỉ mục controls, và none of them bảo đảm lập chỉ mục, xếp hạng, hoặc traffic. max-snippet:[number] caps đó text snippet (0 = không snippet, giống nhau as nosnippet; -1 = Google chọn; an unparseable giá trị là đã bỏ qua); max-image-preview:[none|tiêu chuẩn|lớn] caps image size (lớn là needed cho big Discover treatments, paired với images ít nhất 1200px wide, over 300 000 total pixels, và một 16:9 ratio); max-video-preview:[seconds] caps inline video (0 = static image nhiều nhất; -1 = không limit). Set them trong đó robots meta tag hoặc đó X-Robots-Tag header, và combine all three trong một comma-separated tag — conflicting rules resolve để đó hầu hết restrictive một. Đó catch: max-snippet:0/nosnippet strips featured-snippet eligibility và AI-Overview/AI-Chế độ input tại đó trang cấp độ, một real CTR tradeoff — Google là riêng kiểm thử một thuộc tính-cấp độ Search Console control để exclude AI Overviews, AI Chế độ, và Discover AI features không có touching của bạn snippet, nhưng đây là trong limited rollout và distinct từ những trang directives.

TL;DR — max-snippet, max-image-preview, và max-video-preview là robots directives đó cap display, không lập chỉ mục. max-snippet:[number] limits đó text snippet (0 = none, equal để nosnippet; -1 = Google chọn) và cũng limits cách nhiều nội dung feeds AI Overviews và AI Chế độ. max-image-preview takes none / standard / large (large enables big Discover/preview images, pair với images ít nhất 1200px wide và over 300 000 total pixels). max-video-preview:[seconds] caps inline video (0 = static image nhiều nhất; -1 = không limit). Set qua robots meta tag hoặc X-Robots-Tag, combine trong một comma-separated tag, hầu hết-restrictive rule wins, và đó trang phải stay crawlable. Đó honest catch: tại đó trang cấp độ, max-snippet:0/nosnippet strips featured snippets và AI-Overview/AI-Chế độ input together — một genuine CTR tradeoff. Google là riêng kiểm thử một thuộc tính-cấp độ Tìm kiếm generative AI control cho excluding AI Overviews/AI Chế độ/Discover AI không có touching của bạn snippet, nhưng đây là trong limited rollout và distinct từ những directives.

Evidence for this claim Google supports max-snippet to set a text-snippet character limit and max-image-preview to set the maximum preview-image size. Scope: Google Search result presentation controls, not indexing or ranking controls. Confidence: high · Verified: Google Search Central: Robots directives Evidence for this claim Google documents that stricter snippet controls also limit eligible direct inputs and previews in certain AI search features. Scope: Current Google Search AI-feature controls; feature presentation can change. Confidence: high · Verified: Google Search Central: AI features and your website

Display controls, không lập chỉ mục controls

Đó mental model để lock trong đầu tiên: những directives govern cách nhiều Google có thể cho thấy hoặc dùng từ một trang, không liệu đó trang là được lập chỉ mục hoặc cách điều này ranks. đó là điều gì separates them từ noindex (xóa đó trang) và ngay cả từ đó crawl-blocking robots.txt disallow. They trực tiếp trong đó giống nhau family as đó robots meta tag và đó X-Robots-Tag header, và họ là đó graduated version of đó binary nosnippet / data-nosnippet — thay vì “snippet on or off,” (bản dịch) «snippet on hoặc off,» bạn set một ceiling. Google own wording là consistently “maximum” và “có thể”: những directives set một permission ceiling on điều gì Google có thể display nếu điều này decides để cho thấy điều gì đó tại all. None of them bảo đảm lập chỉ mục, xếp hạng, đó một preview of bất kỳ size sẽ thực ra xuất hiện, hoặc bất kỳ particular amount of traffic hoặc nhấp-qua — they chỉ cap đó upper bound.

The three directives cap different parts of the search preview; none of them removes the page from the index. Nguồn: Patrick Stox

The page remains eligible for indexing and ranking. max-snippet:N caps the text snippet to N characters; 0 allows no text snippet and -1 lets Google choose. max-image-preview allows none, standard, or large image previews. max-video-preview:N caps inline video to N seconds; 0 allows a still frame at most and -1 sets no limit. The directives must be crawlable, and restrictive snippet settings can also reduce featured-snippet and AI-feature use.

© Patrick Stox LLC · CC BY 4.0 ·

max-snippet — đó text snippet

max-snippet:[number] caps đó textual snippet để N characters. Đó hai special các giá trị là đó ones để memorize:

  • max-snippet:0 — không text snippet. Google spec là rõ ràng đó này là tương đương để nosnippet.
  • max-snippet:-1 — Google chọn đó snippet length điều này believes là hầu hết effective.

Điều này làm không touch image hoặc video previews — những có của họ own directives. Đó load-bearing modern detail là đó max-snippet cũng governs AI features. Theo Google spec, điều này áp dụng trên web tìm kiếm, Images, Discover, Assistant, AI Overviews, và AI Chế độ, và “will also limit how much of the content may be used as a direct input for AI Overviews and AI Mode.” (bản dịch) «sẽ cũng limit cách nhiều of đó nội dung có thể là dùng as một trực tiếp input cho AI Overviews và AI Chế độ.» có một carve-out: này limit không apply nơi một publisher có riêng granted permission cho đó nội dung (chẳng hạn, trong-trang dữ liệu có cấu trúc, AMP, hoặc một license agreement với Google).

Evidence for this claim `max-snippet` applies across Google web search, Images, Discover, Assistant, AI Overviews and AI Mode and limits direct input to AI Overviews and AI Mode, except where the publisher separately granted permission such as in structured data or a license. Scope: public web and verified properties as applicable Confidence: high · Verified: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications

Đó practical consequence — và đó điều worth đang honest về — là đó những trang-cấp độ directives không cho bạn một sạch “opt out of AI Overviews only” (bản dịch) «opt out of AI Overviews chỉ» lever. max-snippetnosnippet cut của bạn AI-Overview/AI-Chế độ input của bạn thông thường text snippet đồng thời; bạn không thể giữ một và drop đó other với những tags alone.

đó là thay đổi tại một khác nhau layer, though: Google là rolling out một Tìm kiếm generative AI control trong Search Console — một thuộc tính-cấp độ setting, tách biệt từ những trang directives, đó cho phép bạn bao gồm, exclude, hoặc inherit của bạn site participation trong AI Overviews, AI Chế độ, và generative AI features trong Discover, không có touching của bạn thông thường snippet. As of này writing đây là trong một subset rollout (khả dụng để some chủ trang web, không all tuy vậy), và an exclusion có thể take một để hai days hoặc lâu hơn để propagate. đây là cũng distinct từ Google-Extended, mà controls model training, không điều gì xuất hiện trong những Tìm kiếm AI features. So có hiện tại three tách biệt levers: đó trang-cấp độ preview directives covered on này trang (bundle snippet + AI-input control), đó thuộc tính-cấp độ Tìm kiếm generative AI control (AI-chỉ, không snippet impact, nhưng vẫn rolling out), và Google-Extended (training chỉ).

Evidence for this claim As of 2026-07-17, Google is separately testing a Search Console property-level generative AI control for AI Overviews, AI Mode and generative AI in Discover; it is distinct from page preview directives, other Search ranking/inclusion, and Google-Extended training controls. Scope: public web and verified properties as applicable Confidence: high · Verified: Google common crawlers: Google-Extended

max-image-preview — đó image preview

max-image-preview:[setting] caps đó image preview size, với three các giá trị:

  • none — không image preview.
  • standard — một default-size preview có thể là shown.
  • large — một lớn hơn preview, lên để đó width of đó viewport, có thể là shown.

Nếu bạn không set điều này, Google có thể cho thấy một default-size preview. Đó reason hầu hết mọi người reach cho này là large: đây là đó tiêu chuẩn khuyến nghị cho Google Discover và other lớn-image treatments. Google hiện tại Discover image hướng dẫn là cụ thể — một relevant, cao-quality image ít nhất 1200px wide, với hơn 300 000 total pixels, trong một 16:9 aspect ratio — và đây là enabled by max-image-preview:large hoặc AMP. Frame điều này honestly though: eligibility, đó large permission, mà image nhận được chọn, và liệu Discover thực ra cho thấy điều này là four tách biệt điều, và Google là rõ ràng đó đang eligible để xuất hiện trong Discover không một bảo đảm of appearing. large không một xếp hạng factor.

Evidence for this claim For Discover, Google recommends relevant high-quality images at least 1200 pixels wide, above 300,000 total pixels and suitable for 16:9, enabled with `max-image-preview:large` or AMP; eligibility and these recommendations do not guarantee Discover appearance or traffic. Scope: public web and verified properties as applicable Confidence: high · Verified: Discover and your website

max-video-preview — đó video preview

max-video-preview:[number] caps đó inline video preview để N seconds:

  • 0 — nhiều nhất một static image có thể là dùng (governed by của bạn max-image-preview setting). Note này là “a still frame at most,” (bản dịch) «một vẫn frame nhiều nhất,» không “no video media whatsoever.” (bản dịch) «không video media whatsoever.»
  • -1 — không limit.

Unset, Google decides đó preview length.

Một trường hợp biên worth knowing cho cả hai max-snippetmax-video-preview: nếu đó number bạn supply không parseable — một non-numeric hoặc malformed giá trị nơi Google expects an integer — Google bỏ qua đó directive hoàn toàn và falls lại để của nó default behavior cho điều này. Đó 0-1 special các giá trị luôn giữ của họ được ghi lại meaning; đây là mọi thứ khác đó có để parse cleanly để take effect.

Combining them trong một tag

All three trực tiếp trong một comma-separated directive. Google own canonical ví dụ limits đó snippet để 20 characters và cho phép một lớn image:

<meta name="robots" content="max-snippet:20, max-image-preview:large">

Bạn có thể cũng split them trên tách biệt meta tags — giống nhau effect. Hai rules govern cách they resolve:

  • Hầu hết-restrictive wins. Nếu một trang carries cả hai max-snippet:50nosnippet, đó nosnippet rule áp dụng (không snippet tại all). Này là Google được ghi lại conflict-resolution rule cụ thể — Bing hỗ trợ đó giống nhau three directives (see dưới), nhưng của nó combined-tag conflict xử lý và bất kỳ AI-sản phẩm effects không được ghi lại cùng cách, so verify theo engine rather hơn assuming giống hệt behavior.
  • Đó trang phải được crawlable. Những là đọc during crawling, so they không governed by một robots.txt disallow — nhưng nếu bạn làm block đó trang trong robots.txt, Google không bao giờ fetches điều này và không bao giờ sees đó tag. không pair những với một disallow.

MỘT couple of realistic recipes:

<!-- Publisher who wants maximum SERP + Discover surface -->
<meta name="robots" content="max-snippet:-1, max-image-preview:large, max-video-preview:-1">

<!-- News site wary of feeding long passages into AI features -->
<meta name="robots" content="max-snippet:[low number], max-image-preview:large">

Robots meta tag so với X-Robots-Tag

Giống nhau directives, hai phân phối mechanisms:

  • Robots meta tag — an HTML element trong đó trang <head>. Best cho riêng lẻ các trang.
  • X-Robots-Tag — an HTTP header phản hồi set tại đó máy chủ (Apache, Nginx, hoặc một CDN). Này là cách bạn apply max-image-preview / max-video-preview caps để non-HTML files như images, PDFs, và video đó có không <head>, và cách bạn apply một rule trong bulk hoặc site-wide.

Đó rules là case-insensitive, và bạn có thể verify một trực tiếp header với curl -I so với đó công khai URL. Watch cho một CDN serving một khác nhau header hơn của bạn origin.

Cách kiểm thử

  • URL Inspection (Search Console) — kiểm tra đó HTML Googlebot thực ra đã nhận, so bạn có thể xác nhận đó tag là present và không stripped by một plugin hoặc CDN.
  • curl -I — xác nhận đó X-Robots-Tag header là đang đã gửi cho đó header approach.
  • không robots.txt-block đó trang — nếu Google không thể crawl điều này, none of những caps là đọc.

Đó tradeoff, và một bit of history

Những shipped on September 24, 2019 (effective mid-để-muộn October 2019). Google own announcement không chẳng hạn vì sao — nhưng đó widely reported ngành driver đã là đó EU Copyright Directive: France 2019 implementation pushed Google để cho publishers granular control over cách nhiều preview nội dung appeared, trong lieu of paying cho snippets. (Đó EU-origin cách diễn đạt là ngành-sourced, không từ Google post — so treat điều này as context, không một Google statement.)

Đó honest bottom line: capping snippets không phải free. As Glenn Gabe được ghi lại khi he tested đó preview controls, applying nosnippet đã xóa his nội dung từ an AI Overview — nhưng điều này cũng left his thông thường tìm kiếm listing với không mô tả, mà he dự kiến sẽ hurt nhấp-qua rate. Barry Schwartz flagged đó featured-snippet angle lại trong 2019: drop dưới đó minimum text một featured snippet cần và bạn có thể fall out of đó position. So max-snippet:0 / nosnippet là một real CTR decision tại đó trang cấp độ, không một tidy AI-chỉ opt-out — đó tách biệt lever hiện tại tồn tại as đó thuộc tính-cấp độ Tìm kiếm generative AI control described trên, vẫn trong limited rollout. Cho đó all-hoặc-không có gì on/off control và đó surgical, theo-section variant, see đó nosnippet / dữ liệu-nosnippet bài viết; đó robots meta tag và X-Robots-Tag header các trang cover đó đầy đủ directive set.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.