Panduan nosnippet
nosnippet kills snippet untuk sebuah whole halaman; data-nosnippet hides hanya one bagian. scopes, valid-HTML gotcha, dan AI Overviews angle.
Bahasa
nosnippet dan data-nosnippet both suppress snippet text, di berbeda scopes. nosnippet adalah sebuah robots directive — sebuah meta-robots nilai atau sebuah X-Robots-Tag header — itu kills snippet text dan video preview untuk whole halaman (though sebuah static image thumbnail dapat masih tampilkan), menghapus featured-snippet eligibility, dan (per Google) drops konten sebagai sebuah direct input untuk AI Overviews dan AI Mode. data-nosnippet adalah sebuah HTML attribute, valid hanya pada span/div/bagian, itu hides hanya wrapped bagian — dari both regular dan featured snippets — while rest dari halaman stays eligible; ini adalah sebuah boolean attribute, markup harus menjadi valid, closed HTML atau sebuah unclosed tag swallows everything setelah ini, dan data terstruktur inside ini stays usable. nosnippet equals max-snippet:0 untuk text; neither touches pengindeksan atau rankings; Bing mendukung nosnippet tetapi documents no data-nosnippet. Google adalah juga testing sebuah separate property-tingkat Search generative AI control di Search Console.
TL;DR — sebuah snippet adalah bit dari descriptive text di bawah Anda hasil di Google.
Evidence for this claim Google's nosnippet directive prevents a text snippet and video preview from being shown for the page in search results. Scope: Google Search presentation; it does not itself remove the URL from the index. Confidence: high · Verified: Google Search Central: Robots directives Evidence for this claim Google's data-nosnippet attribute can exclude text within span, div, and section elements from snippets. Scope: Section-level Google snippet control; valid, well-formed HTML is required. Confidence: high · Verified: Google Search Central: data-nosnippetnosnippettells Google untuk tampilkan no snippet text untuk whole halaman — Anda get mostly hanya sebuah judul dan URL (Google says sebuah static image thumbnail dapat masih tampilkan di beberapa cases).data-nosnippetadalah more surgical: wrap one paragraf di ini dan hanya itu paragraf adalah hidden dari snippet, while rest dari halaman dapat masih tampilkan. Neither one menghapus Anda halaman dari Google atau perubahan Anda rankings — mereka hanya perubahan what menampilkan di listing.
What sebuah snippet adalah, dan two cara untuk suppress ini
When Anda halaman menampilkan up di Google, mesin biasanya pulls sebuah line atau two dari text untuk tampilkan di bawah Anda tautan. itu’s snippet. oleh default Google writes ini untuk Anda dari whatever’s pada halaman.
Sometimes Anda tidak ingin itu text ditampilkan — maybe ini adalah paywalled konten, atau something sensitive, atau Anda simply don’t ingin Google lifting sebuah chunk dari Anda halaman ke hasil. Anda memiliki two alat:
nosnippet— hides snippet untuk entire halaman. Anda tambahkan ini sebagai sebuah robots meta tag (atau kirim ini sebagai sebuah header HTTP). hasil adalah sebuah bare listing: judul dan URL, no deskripsi.data-nosnippet— hides hanya one bagian. Anda tambahkan ini sebagai sebuah attribute pada sebuahspan,div, atausectionsekitar text Anda ingin dipertahankan out. Everything outside itu wrapper dapat masih menjadi digunakan di snippet.
halaman-tingkat one: nosnippet
Drop ini di <head> dan whole halaman’s snippet goes away:
<meta name="robots" content="nosnippet">sebuah couple dari things untuk know: ini juga takes Anda out dari featured snippets ( boxed jawaban di top), dan Google says ini menghapus Anda konten sebagai sebuah direct input untuk AI Overviews dan AI Mode. trade-off adalah itu Anda normal listing now looks sebuah bit bare — no deskripsi di bawah tautan (sebuah kecil image thumbnail dapat masih tampilkan, tetapi text adalah hilang).
bagian-tingkat one: data-nosnippet
Wrap text Anda ingin pertahankan out dari snippet:
<p>This part can show in a snippet
<span data-nosnippet>but this part won't</span>.</p>paling penting catch: HTML memiliki untuk menjadi valid dan properly closed. jika Anda forget untuk close tag, Google’s own warning adalah itu ini’ll sertakan semua konten setelah ini anyway — so protection silently fails.
What ini melakukan not melakukan
nosnippet dan data-nosnippet don’t hapus Anda halaman dari Google dan don’t
perubahan Anda rankings. halaman masih indeks dan masih peringkat — ini hanya menampilkan
without snippet text. jika Anda actually ingin sebuah halaman hilang, itu’s sebuah berbeda
control (sebuah noindex pada robots meta tag, covered elsewhere).
ingin exact spec language, max-snippet:0 equivalence, AI-Overviews
lag, dan Bing caveat? Switch untuk Advanced tab.
TL;DR —
Evidence for this claim Google's nosnippet directive prevents a text snippet and video preview from being shown for the page in search results. Scope: Google Search presentation; it does not itself remove the URL from the index. Confidence: high · Verified: Google Search Central: Robots directives Evidence for this claim Google's data-nosnippet attribute can exclude text within span, div, and section elements from snippets. Scope: Section-level Google snippet control; valid, well-formed HTML is required. Confidence: high · Verified: Google Search Central: data-nosnippetnosnippetadalah sebuah robots directive (<meta name="robots" content="nosnippet">atau sebuahX-Robots-Tag: nosnippetheader) itu suppresses text snippet dan video preview untuk whole halaman, menghapus featured-snippet eligibility, dan — per Google — drops konten sebagai sebuah direct input untuk AI Overviews dan AI Mode. untuk text ini equalsmax-snippet:0, dan pada conflict more restrictive aturan wins (nosnippetbeatsmax-snippet:50).data-nosnippetadalah sebuah HTML attribute, valid hanya padaspan/div/section, itu excludes one bagian — dari both regular dan featured snippets; ini adalah boolean (apa pun nilai adalah ignored), markup harus menjadi valid, closed HTML atau sebuah unclosed tag swallows everything setelah ini, dan data terstruktur inside ini stays usable. Neither touches pengindeksan atau rankings, dannosnippetdoesn’t guarantee zero visuals (sebuah static image thumbnail dapat masih tampilkan). Bing honorsnosnippet; ini documents nodata-nosnippet.
Two controls, two scopes
Nosnippet is a page-level robots directive that removes the whole text snippet and video preview and prevents direct use in Google AI features. Data-nosnippet is an attribute on a span, div, or section that excludes only the properly wrapped valid HTML. Both control display rather than indexing or ranking.
whole thing comes down untuk scope. nosnippet berfungsi di halaman tingkat;
data-nosnippet berfungsi di bagian tingkat. People reach untuk wrong one
constantly, so pertahankan ini straight:
nosnippet— sebuah nilai di sebuah robots meta tag atauX-Robots-Tagheader. Whole-halaman suppression.data-nosnippet— sebuah HTML attribute padaspan/div/section. One-bagian suppression.
Both adalah display controls. mereka sit alongside rest dari robots meta tag
family dan X-Robots-Tag header, dan mereka’re suppression cousins dari
max-snippet / max-image-preview length controls.
nosnippet — halaman-tingkat robots directive
Syntax (meta tag dan header)
di HTML, Anda set ini pada robots meta tag:
<meta name="robots" content="nosnippet">untuk anything itu isn’t HTML — PDFs, images, lainnya files where Anda dapat’t tambahkan sebuah
<head> — Anda kirim ini sebagai sebuah respons header HTTP instead:
X-Robots-Tag: nosnippetsama directive, two delivery mechanisms. header route adalah satu-satunya cara untuk reach non-HTML resources.
What ini actually menghapus
Google’s spec adalah plain: nosnippet berarti “Do not show a text snippet or video
preview in the search results for this page.” (terjemahan) “melakukan not tampilkan sebuah text snippet atau video
preview di hasil pencarian untuk ini halaman.” itu’s broader daripada ini sounds. Per
yang sama doc, ini “applies to all forms of search results (at Google: web search,
Google Images, Discover, AI Overviews, AI Mode) and will also prevent the content
from being used as a direct input for AI Overviews and AI Mode.” (terjemahan) “applies untuk semua forms dari hasil pencarian (di Google: web search,
Google Images, menemukan, AI Overviews, AI Mode) dan akan juga mencegah konten
dari menjadi digunakan sebagai sebuah direct input untuk AI Overviews dan AI Mode.”
So one directive melakukan four things:
- menghapus text snippet.
- menghapus video preview.
- menghapus featured-snippet eligibility — Google says jika Anda ingin sebuah guaranteed
cara out dari featured snippets,
nosnippetadalah ini. - menghapus konten sebagai sebuah direct input untuk AI Overviews dan AI Mode.
One qualification worth knowing: nosnippet doesn’t guarantee sebuah completely bare
listing. Google’s spec menambahkan itu “a static image thumbnail (if available) may
still be visible, when it results in a better user experience.” (terjemahan) “sebuah static image thumbnail (jika available) dapat
masih menjadi terlihat, when ini hasil di sebuah better pengguna experience.” So Anda’re
guaranteed no text snippet dan no video preview — not necessarily zero visuals.
jika Anda tidak set ini, default adalah itu “Google may generate a text snippet and video preview based on information found on the page.” (terjemahan) “Google dapat generate sebuah text snippet dan video preview berdasarkan informasi ditemukan pada halaman.”
Relationship untuk max-snippet:0
nosnippet adalah functionally equivalent untuk max-snippet:0 untuk text — Google
documents itu 0 untuk max-snippet berarti “No snippet is to be shown. Equivalent
to nosnippet.” (terjemahan) “No snippet adalah untuk menjadi ditampilkan. Equivalent
untuk undefined.” difference adalah itu max-snippet juga takes positive nilai
(cap snippet di N characters) where nosnippet adalah semua-atau-nothing.
When robots aturan conflict, ** more restrictive one applies**. Google’s own
contoh: “if a page has both max-snippet:50 and nosnippet rules, the
nosnippet rule will apply.” (terjemahan) “jika sebuah halaman memiliki both undefined dan undefined aturan,
undefined aturan akan apply.”
data-nosnippet — bagian-tingkat HTML attribute
Syntax dan official contoh
Anda designate sebuah chunk dari text untuk menjadi dipertahankan out dari snippet oleh putting
attribute pada element itu wraps ini. Google: “You can designate textual parts
of an HTML page not to be used as a snippet. This can be done on an HTML-element
level with the data-nosnippet HTML attribute on span, div, and section
elements.” (terjemahan) “Anda dapat designate textual bagian
dari sebuah HTML halaman not untuk menjadi digunakan sebagai sebuah snippet. ini dapat menjadi done pada sebuah HTML-element
tingkat dengan undefined HTML attribute pada undefined, undefined, dan undefined
elements.” itu three elements adalah whole allowed list — ini melakukan not berfungsi
pada arbitrary tags.
Here’s Google’s own contoh, verbatim:
<p>This text can be shown in a snippet
<span data-nosnippet>and this part would not be shown</span>.</p>
<div data-nosnippet>not in snippet</div>
<div data-nosnippet="true">also not in snippet</div>
<div data-nosnippet="false">also not in snippet</div>
<!-- all values are ignored -->
<div data-nosnippet>some text</html>
<!-- unclosed "div" will include all content afterwards -->ini adalah sebuah boolean attribute
Notice ="true" dan ="false" lines above behave identically. itu’s
because, di Google’s kata, “The data-nosnippet is considered a boolean
attribute. As with all boolean attributes, any value specified is ignored.” (terjemahan) “ undefined adalah considered sebuah boolean
attribute. sebagai dengan semua boolean attributes, apa pun nilai specified adalah ignored.”
Presence adalah what penting — don’t bother giving ini sebuah nilai, dan don’t assume
="false" turns ini off. ini doesn’t.
valid-HTML requirement ( failure mode)
ini adalah bagian almost nobody covers, dan ini adalah paling umum alasan
data-nosnippet silently doesn’t berfungsi. Google parses attribute dari rendered
markup, so: “To ensure machine-readability, the HTML section must be valid HTML
and all appropriate tags must be closed accordingly.” (terjemahan) “untuk ensure machine-readability, HTML bagian harus menjadi valid HTML
dan semua appropriate tags harus menjadi closed accordingly.”
lihat last line dari Google’s contoh again — <div data-nosnippet>some text</html>. div adalah tidak pernah closed, dan Google’s comment spells out
hasil: “unclosed div will include all content afterwards.” (terjemahan) “unclosed undefined akan sertakan semua konten afterwards.” di lainnya
kata, sebuah unclosed protected region doesn’t hide more, ini hides nothing —
everything setelah open tag leaks back ke snippet. jika Anda
data-nosnippet isn’t taking, periksa bahwa wrapping element adalah actually closed.
JavaScript caveat
One more dari spec: “To avoid uncertainty from rendering, do not add or
remove the data-nosnippet attribute of existing nodes through JavaScript.” (terjemahan) “untuk hindari uncertainty dari rendering, jangan tambahkan atau
hapus undefined attribute dari existing nodes melalui JavaScript.” Put
ini di server-rendered HTML dan leave ini there. Toggling ini client-side
introduces exactly jenis dari rendering ambiguity valid-HTML aturan adalah trying
untuk mencegah. membangun elements dynamically adalah fine — Google’s guidance adalah untuk set
attribute di creation time, not untuk mutate existing nodes: “When adding DOM
elements through JavaScript, include the data-nosnippet attribute as necessary
when initially adding the element to the page’s DOM.” (terjemahan) “When menambahkan DOM
elements melalui JavaScript, sertakan undefined attribute sebagai necessary
when initially menambahkan element untuk halaman’s DOM.”
ini excludes featured snippets too, dan data terstruktur masih berfungsi inside ini
bagian-tingkat exclusion isn’t limited untuk regular snippets — sebuah bagian wrapped
di data-nosnippet adalah juga dipertahankan out dari featured snippets. dan jika sebuah halaman
carries both sebuah halaman-tingkat nosnippet dan sebuah bagian-tingkat data-nosnippet,
halaman-tingkat aturan adalah more restrictive one, so ini takes priority untuk whole
halaman.
data-nosnippet juga doesn’t touch data terstruktur cara Anda mungkin assume:
Google says “structured data remains usable for search results when declared
within a data-nosnippet element.” (terjemahan) “data terstruktur remains usable untuk hasil pencarian when declared
di dalam sebuah undefined element.” Don’t generalize attribute past text
snippet eligibility — ini isn’t sebuah access-control mechanism dan ini doesn’t hide
images atau lainnya media pada halaman; ini hanya mempertahankan wrapped text out dari snippet
selection (dengan documented max-snippet/deskripsi-field nuances Google
covers untuk data terstruktur separately).
Which one untuk gunakan
decision adalah almost selalu tentang scope dan intent:
- Hide whole snippet (dan exit featured snippets / AI Overviews untuk
halaman) →
nosnippet. - Hide hanya one paragraf atau block while rest dari halaman mempertahankan -nya
snippet →
data-nosnippet. - hanya shorten snippet alih-alih kill ini → itu’s
max-snippet:N, length control, not ini. - Apply ini untuk sebuah PDF atau lainnya non-HTML file →
X-Robots-Tag: nosnippet, since there’s no<head>untuk put sebuah meta tag di.
menghapus konten dari AI Overviews
2025–2026 alasan sebuah lot dari people land pada ini topic adalah AI Overviews.
mechanics berfungsi — nosnippet dan data-nosnippet melakukan hapus konten sebagai sebuah direct
input — tetapi expect latency. di Glenn Gabe’s case study, nosnippet pulled his
konten out dari sebuah AI Overview quickly, tetapi effect adalah initially pendek-lived
dan konten reappeared sebelum ini settled; setelah John Mueller weighed di,
removal melakukan ultimately stick — ini hanya took longer untuk fully process. So jika Anda
apply ini dan konten’s masih showing, give ini time sebelum assuming ini failed.
dan mind trade-off Gabe flagged: whole-halaman nosnippet juga strips Anda
normal snippet, leaving sebuah awkward, deskripsi-less listing di ten blue
tautan. jika Anda hanya perlu untuk hapus bagian dari konten dari AI surfaces,
bagian-tingkat data-nosnippet (atau sebuah max-snippet cap) adalah gentler lever.
There’s juga sebuah newer, separate control worth knowing tentang: Google adalah testing sebuah
property-tingkat “Search generative AI” (terjemahan) “Search generative AI” control di Search Console — sebuah
sertakan/exclude/inherit setting itu scopes untuk AI Overviews, AI Mode, dan
generative AI di menemukan. ini adalah distinct dari halaman-tingkat nosnippet (which adalah sebuah
per-halaman HTML/header aturan) dan dari Google-Extended (which governs AI
training dan grounding, not Search preview eligibility). rollout adalah
limited, dan per Google, propagation dari sebuah perubahan dapat take sebuah day atau two, atau
longer. Don’t reach untuk ini sebagai Anda default — ini adalah sebuah Search Console setting layered
pada top dari halaman-tingkat controls above, not sebuah replacement untuk them.
Bing dan lainnya mesin
sebuah parity caveat worth saying out loud: Bing mendukung nosnippet (dan
snippet-length controls), tetapi Bing melakukan not document data-nosnippet.
bagian-tingkat attribute appears untuk menjadi Google-spesifik. jika Anda perlu bagian-tingkat
snippet control untuk hold everywhere, hanya Google guarantees ini — don’t assume Bing
honors sebuah data-nosnippet wrapper.
Apple documents sebuah berbeda, berguna boundary: dengan nosnippet, Apple dapat masih
gunakan halaman’s judul untuk matching dan penemuan, tetapi ini akan not gunakan halaman
konten sebagai context untuk generative models. itu adalah sebuah Apple-spesifik gunakan-control
notice, not sebuah generic claim itu nosnippet menghapus URL dari penemuan.
cost Anda’re accepting
ini adalah worth menjadi honest itu snippet eligibility adalah sebuah nyata, losable asset. I
learned itu blunt cara dengan * Story dari Blocking 2 tinggi-peringkat halaman dengan
Robots.txt* — when I blocked two dari kami peringkat halaman di robots.txt, paling
terlihat casualty adalah itu mereka lost semua dari mereka featured snippets. itu adalah
robots.txt, not nosnippet, tetapi lesson transfers: giving up snippet
eligibility adalah sebuah deliberate cost. difference adalah itu nosnippet dan
data-nosnippet let Anda give ini up precisely — whole halaman atau one bagian, pada
purpose — alih-alih sebagai collateral damage dari sebuah crawl block. Spend ini where ini adalah
worth spending.
AI summary
sebuah condensed take pada Advanced versi:
- Two controls, two scopes.
nosnippet= whole-halaman robots directive;data-nosnippet= bagian-tingkat HTML attribute. nosnippetgoes di robots meta tag (<meta name="robots" content="nosnippet">) atauX-Robots-Tag: nosnippetheader ( header adalah route untuk non-HTML like PDFs). ini menghapus text snippet dan video preview, menghapus featured-snippet eligibility, dan — per Google — drops konten sebagai sebuah direct input untuk AI Overviews dan AI Mode.nosnippet≈max-snippet:0untuk text; pada conflict more restrictive aturan wins (nosnippetbeatsmax-snippet:50).data-nosnippetadalah valid hanya padaspan,div,section. ini adalah sebuah boolean attribute —="true"/="false"/no nilai semua behave yang sama. markup harus menjadi valid, closed HTML; sebuah unclosed tag mencakup everything setelah ini ( protection fails). Don’t toggle ini pada existing nodes via JavaScript — set ini when sebuah node adalah pertama dibuat instead. ini excludes wrapped text dari both regular dan featured snippets, dan data terstruktur inside ini stays usable.nosnippetdoesn’t guarantee zero visuals — sebuah static image thumbnail dapat masih tampilkan “when it results in a better user experience,” (terjemahan) “when ini hasil di sebuah better pengguna experience,” per Google.- Neither affects pengindeksan atau rankings — display-hanya; halaman masih peringkat, hanya without snippet text.
- AI Overviews removal berfungsi tetapi lags (Gabe/Mueller); whole-halaman
nosnippetjuga strips Anda normal snippet, leaving sebuah bare listing — bagian-tingkatdata-nosnippetadalah gentler. Google adalah juga testing sebuah separate, property-tingkat Search generative AI control di Search Console (limited rollout) untuk AI Overviews/AI Mode/menemukan, distinct dari halaman-tingkatnosnippetdan dariGoogle-Extended. - Bing honors
nosnippet;data-nosnippetadalah documented oleh Google hanya.
Official documentation
Primary-source documentation dari mesin pencari.
- Robots meta tag, data-nosnippet, dan X-Robots-Tag specifications — definitive spec untuk
nosnippet,data-nosnippetaturan, official contoh, danmax-snippet:0equivalence. - Featured snippets dan Anda situs web — cara opt sebuah halaman out dari featured snippets (
nosnippetadalah guaranteed metode). - Top cara untuk ensure Anda konten performs well di Google’s AI experiences pada Search — Search Central blog, dapat 2025; lists
nosnippet/data-nosnippet/max-snippet/noindexsebagai preview controls untuk AI experiences. - Search generative AI control — Google Search Console Help; newer property-tingkat sertakan/exclude/inherit setting untuk AI Overviews, AI Mode, dan generative AI di menemukan, separate dari halaman-tingkat
nosnippetdan dariGoogle-Extended.
Bing / Microsoft
- Announcing baru options untuk webmasters untuk control mereka snippets di Bing — Bing Webmaster Blog, April 2020; confirms Bing mendukung
nosnippetmeta tag dan length controls (max-snippet,max-image-preview,max-video-preview). Note: nodata-nosnippet. - Robots meta tags dan attributes itu Bing mendukung — Bing’s live help halaman (JS-rendered).
Quotes dari source
pada—record statements dari Google. setiap tautan adalah sebuah deep tautan itu jumps untuk quoted passage pada source halaman.
Google — nosnippet (robots meta tag spec)
- “Do not show a text snippet or video preview in the search results for this page.” (terjemahan) “melakukan not tampilkan sebuah text snippet atau video preview di hasil pencarian untuk ini halaman.” — Google Search Central docs. Jump untuk quote
- “This applies to all forms of search results (at Google: web search, Google Images, Discover, AI Overviews, AI Mode) and will also prevent the content from being used as a direct input for AI Overviews and AI Mode.” (terjemahan) “ini applies untuk semua forms dari hasil pencarian (di Google: web search, Google Images, menemukan, AI Overviews, AI Mode) dan akan juga mencegah konten dari menjadi digunakan sebagai sebuah direct input untuk AI Overviews dan AI Mode.” Jump untuk quote
- “If you don’t specify this rule, Google may generate a text snippet and video preview based on information found on the page.” (terjemahan) “jika Anda tidak specify ini aturan, Google dapat generate sebuah text snippet dan video preview berdasarkan informasi ditemukan pada halaman.” Jump untuk quote
- “A static image thumbnail (if available) may still be visible, when it results in a better user experience.” (terjemahan) “sebuah static image thumbnail (jika available) dapat masih menjadi terlihat, when ini hasil di sebuah better pengguna experience.” Jump untuk quote
Google — data-nosnippet (robots meta tag spec)
- “You can designate textual parts of an HTML page not to be used as a snippet. This can be done on an HTML-element level with the
data-nosnippetHTML attribute onspan,div, andsectionelements.” (terjemahan) “Anda dapat designate textual bagian dari sebuah HTML halaman not untuk menjadi digunakan sebagai sebuah snippet. ini dapat menjadi done pada sebuah HTML-element tingkat dengan undefined HTML attribute pada undefined, undefined, dan undefined elements.” Jump untuk quote - “As with all boolean attributes, any value specified is ignored.” (terjemahan) “sebagai dengan semua boolean attributes, apa pun nilai specified adalah ignored.” Jump untuk quote
- “To ensure machine-readability, the HTML section must be valid HTML and all appropriate tags must be closed accordingly.” (terjemahan) “untuk ensure machine-readability, HTML bagian harus menjadi valid HTML dan semua appropriate tags harus menjadi closed accordingly.” Jump untuk quote
- “To avoid uncertainty from rendering, do not add or remove the
data-nosnippetattribute of existing nodes through JavaScript.” (terjemahan) “untuk hindari uncertainty dari rendering, jangan tambahkan atau hapus undefined attribute dari existing nodes melalui JavaScript.” Jump untuk quote - “When adding DOM elements through JavaScript, include the
data-nosnippetattribute as necessary when initially adding the element to the page’s DOM.” (terjemahan) “When menambahkan DOM elements melalui JavaScript, sertakan undefined attribute sebagai necessary when initially menambahkan element untuk halaman’s DOM.” Jump untuk quote - “Structured data remains usable for search results when declared within a
data-nosnippetelement.” (terjemahan) “data terstruktur remains usable untuk hasil pencarian when declared di dalam sebuah undefined element.” Jump untuk quote
Google — max-snippet equivalence & conflict resolution
- “No snippet is to be shown. Equivalent to
nosnippet.” (terjemahan) “No snippet adalah untuk menjadi ditampilkan. Equivalent untuk undefined.” Jump untuk quote - “In the case of conflicting robots rules, the more restrictive rule applies. For example, if a page has both
max-snippet:50andnosnippetrules, thenosnippetrule will apply.” (terjemahan) “di case dari conflicting robots aturan, more restrictive aturan applies. misalnya, jika sebuah halaman memiliki both undefined dan undefined aturan, undefined aturan akan apply.” Jump untuk quote
Google — featured snippets opt-out
- “If you need a guaranteed solution, use the
nosnippetrule.” (terjemahan) “jika Anda perlu sebuah guaranteed solusi, gunakan undefined aturan.” — Google, “Featured snippets and your website.” (terjemahan) “Featured snippets dan Anda situs web.” Jump untuk quote
Google — AI search preview controls
- “Make use of
nosnippet,data-nosnippet,max-snippet, ornoindexto set your display preferences. More restrictive permissions will limit how your content is featured in our AI experiences.” (terjemahan) “membuat gunakan dari undefined, undefined, undefined, atau undefined untuk set Anda display preferences. More restrictive permissions akan limit how Anda konten adalah featured di kami AI experiences.” — Google Search Central Blog, dapat 2025. Jump untuk quote
nosnippet adalah didukung dan data-nosnippet adalah not
mentioned. Search Console “Search generative AI control” (terjemahan) “Search generative AI control” deskripsi above
adalah summarized, not quoted verbatim — live help halaman blocked automated
fetching dengan sebuah bot-periksa halaman selama ini update pass; re-verify -nya exact
wording di-browser sebelum quoting ini directly. Snippet-suppression cheat sheet
nosnippet vs data-nosnippet vs max-snippet:0
| Control | Scope | Where ini goes | Effect |
|---|---|---|---|
nosnippet | Whole halaman | Robots meta tag (content="nosnippet") atau X-Robots-Tag: nosnippet header | No text snippet, no video preview; out dari featured snippets; out dari AI Overviews/AI Mode sebagai sebuah direct input |
data-nosnippet | One bagian | HTML attribute pada sebuah span, div, atau section element | Hides hanya wrapped text; rest dari halaman stays eligible |
max-snippet:0 | Whole halaman | Robots meta tag (content="max-snippet:0") atau header | sama sebagai nosnippet untuk text (0 = “equivalent to nosnippet” (terjemahan) “equivalent untuk nosnippet”) |
Quick aturan
nosnippet≈max-snippet:0untuk text. pada conflict, more restrictive aturan wins —nosnippetbeatsmax-snippet:50.data-nosnippetadalah boolean:="true",="false", dan bare semua behave identically (nilai ignored).data-nosnippetmemerlukan valid, closed HTML — sebuah unclosed tag leaks everything setelah ini back ke snippet.- Don’t tambahkan/hapus
data-nosnippetpada existing nodes via JavaScript; set ini when sebuah node adalah pertama dibuat jika Anda’re membangun markup dynamically. data-nosnippetjuga excludes wrapped text dari featured snippets; halaman-tingkatnosnippettakes priority di atas ini when sebuah halaman memiliki both.- data terstruktur inside sebuah
data-nosnippetelement stays usable — attribute doesn’t hide images, lainnya media, atau data terstruktur, hanya snippet-eligible text. nosnippetdoesn’t guarantee zero visuals — sebuah static image thumbnail dapat masih tampilkan when ini improves hasil.- PDFs / non-HTML → header hanya:
X-Robots-Tag: nosnippet. - None dari ini affect pengindeksan atau rankings — display hanya.
- Bing: mendukung
nosnippet+ length controls; no documenteddata-nosnippet. - sebuah newer, separate Search Console “Search generative AI” (terjemahan) “Search generative AI” control (testing,
limited rollout) scopes untuk AI Overviews/AI Mode/menemukan di property tingkat
— distinct dari halaman-tingkat
nosnippetdan dariGoogle-Extended.
“Which do I want?” (terjemahan) “Which melakukan I ingin?”
- Whole snippet hilang (dan out dari featured snippets / AI Overviews) →
nosnippet. - One paragraf hidden, rest masih menampilkan →
data-nosnippet. - hanya shorten ini →
max-snippet:N( length control, not ini).
Snippet-control mistakes untuk hindari
- menggunakan
nosnippetwhen hanya one sensitive bagian perlu exclusion. - Expecting
data-nosnippetuntuk mencegah crawling, pengindeksan, atau halaman access. - menambahkan attribute untuk invalid markup atau hanya setelah delayed client rendering.
- Blocking halaman di robots.txt so crawler cannot read directive.
- Suppressing snippets without accepting potential click-melalui tradeoff.
- Assuming
data-nosnippethides images, lainnya media, atau data terstruktur pada halaman — ini hanya excludes wrapped text dari snippet selection. - Assuming
nosnippetguarantees zero visuals di listing — sebuah static image thumbnail dapat masih tampilkan bahkan dengannosnippetset.
umum snippet-control issues
Text masih appears di sebuah snippet
Cause: data-nosnippet adalah pada wrong element, invalid markup, atau unavailable when rendered. Fix: inspect rendered element dan move boolean attribute onto valid div, span, atau section markup sekitar exact text.
entire hasil loses -nya deskripsi
Cause: halaman-tingkat nosnippet atau equivalent suppression adalah digunakan. Fix: hapus ini dan gunakan bagian-tingkat data-nosnippet jika hanya bagian dari halaman perlu exclusion.
sebuah perubahan melakukan not appear immediately
Cause: search output updates setelah recrawling dan processing. Fix: validate live markup pertama, lalu monitor setelah sebuah recrawl alih-alih repeatedly changing directives.
Which snippet control fits?
Choose a snippet-suppression control
Test yourself
berfungsi contoh
Suppress whole halaman (HTML)
<head>
<meta name="robots" content="nosnippet">
</head>Suppress whole halaman (non-HTML, e.g. sebuah PDF)
X-Robots-Tag: nosnippetHide one inline phrase, pertahankan rest
<p>This text can be shown in a snippet
<span data-nosnippet>and this part would not be shown</span>.</p>Hide sebuah whole block (div atau section)
<div data-nosnippet>
Internal pricing notes that shouldn't appear in the search snippet.
</div>
<section data-nosnippet>
<p>An entire region kept out of the snippet.</p>
</section>Boolean — ini adalah semua identical (nilai ignored)
<div data-nosnippet>not in snippet</div>
<div data-nosnippet="true">also not in snippet</div>
<div data-nosnippet="false">also not in snippet — value is ignored</div>** failure mode — tidak pernah melakukan ini**
<div data-nosnippet>some text</html>
<!-- unclosed "div": everything after it leaks back into the snippet -->Close setiap data-nosnippet element. jika markup isn’t valid, Google dapat’t read
boundary dan protection silently fails.
menambahkan ini dynamically — set ini di creation, not setelah
// Do this: include the attribute when you first create the node
const el = document.createElement('div');
el.setAttribute('data-nosnippet', '');
document.body.appendChild(el);
// Don't do this: add/remove it on a node that's already in the DOM
existingEl.setAttribute('data-nosnippet', ''); // rendering uncertainty Log perubahan
Diperbarui 19 Jul 2026.
Ringkasan editorial dan detail perubahan yang tercatat.Detail perubahan
-
Catatan perubahan terperinci saat ini tersedia dalam bahasa Inggris.
Perbandingan lengkap tidak tersedia — tidak ada cuplikan sebelumnya yang diarsipkan untuk revisi ini.
Diperbarui 18 Jul 2026.
Ringkasan editorial dan detail perubahan yang tercatat.Detail perubahan
-
Catatan perubahan terperinci saat ini tersedia dalam bahasa Inggris.
-
Catatan perubahan terperinci saat ini tersedia dalam bahasa Inggris.
-
Catatan perubahan terperinci saat ini tersedia dalam bahasa Inggris.
-
Catatan perubahan terperinci saat ini tersedia dalam bahasa Inggris.
Perbandingan lengkap tidak tersedia — tidak ada cuplikan sebelumnya yang diarsipkan untuk revisi ini.