nosnippetとdata-nosnippet
nosnippetはページ全体、data-nosnippetは1範囲だけのスニペット表示を抑止します。適用範囲、有効なHTMLの要件、AI Overviewsへの影響を解説します。
言語
nosnippetとdata-nosnippetは適用範囲の異なるスニペット表示制御です。nosnippetはrobotsメタタグまたはX-Robots-Tagヘッダーでページ全体のテキストスニペットと動画プレビューを抑止し、強調スニペットやGoogle AI機能の直接入力からも除外します。data-nosnippetはspan、div、sectionに付けるHTML属性で、囲んだ範囲だけを通常スニペットと強調スニペットから除外し、残りは候補に保ちます。boolean属性なので値は無視され、有効で閉じたHTMLが必要です。どちらもインデックス登録や順位を変えません。Bingはnosnippetをサポートしますが、data-nosnippetは文書化していません。Googleは別にSearch Consoleのプロパティ単位Search generative AI制御も限定テストしています。
要点 — スニペットとは、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-nosnippetnosnippetはページ全体の説明文を表示しないよう Google に伝えます。基本的にはタイトルと URL だけになりますが、静止画像のサムネイルが表示される場合があります。data-nosnippetは範囲を絞るための属性で、囲んだ段落だけをスニペットから除外し、ページの残りは候補にできます。どちらもページを Google から削除したり順位を変えたりせず、検索結果での表示だけを制御します。
スニペットとは何か、表示を抑える2つの方法
ページが Google に表示されると、通常はリンクの下にページ内の文章が1〜2行表示されます。これがスニペットです。特に指定しなければ、Google がページ内容から生成します。
有料会員向けの文章、機微な内容、検索結果へ転載されたくない箇所など、説明文を出したくない場合があります。そのための方法は2つです。
nosnippet— ページ全体のスニペットを非表示にします。robots メタタグまたは HTTP ヘッダーで送信し、検索結果は説明文のないタイトルと URL が中心になります。data-nosnippet— 1つの範囲だけを非表示にします。除外したい文章を囲むspan、div、sectionに属性を付けます。囲みの外にある文章はスニペットに利用できます。
ページ単位の nosnippet
<head> に次を置くと、ページ全体のスニペットが非表示になります。
<meta name="robots" content="nosnippet">さらに、強調スニペット(検索結果上部の回答枠)の対象外になり、Google によればコンテンツは AI Overviews と AI Mode の直接入力からも除外されます。一方、通常の検索結果はリンク下の説明文がなく簡素になります。小さな画像サムネイルは表示される場合がありますが、テキストは表示されません。
範囲単位の data-nosnippet
スニペットに使わせたくない文章を次のように囲みます。
<p>This part can show in a snippet
<span data-nosnippet>but this part won't</span>.</p>最重要の注意点は、HTML が有効で、タグが正しく閉じられている必要があることです。タグを閉じ忘れると、Google の警告どおり後続の内容も対象範囲へ入り、保護が意図どおり機能しません。
しないこと
nosnippet と data-nosnippet はページを Google から削除せず、順位も変えません。ページはインデックス登録され順位対象のままで、スニペットの文章だけが変わります。ページ自体を削除したい場合は別の制御である robots メタタグの noindex を使います。
仕様の原文、max-snippet:0 との同等性、AI Overviews への反映遅延、Bing の注意点は Advanced タブをご覧ください。
要点 —
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-nosnippetnosnippetは robots 指示(robots メタタグまたはX-Robots-Tag: nosnippetヘッダー)で、ページ全体のテキストスニペットと動画プレビューを抑止します。強調スニペットの対象外となり、Google によれば AI Overviews と AI Mode の直接入力からも除外されます。テキストについてはmax-snippet:0と同等で、競合時はより制限の強いルールが優先されます(nosnippetがmax-snippet:50より優先)。data-nosnippetはspan/div/sectionだけで有効な HTML 属性で、通常スニペットと強調スニペットの両方から1つの範囲を除外します。boolean 属性なので値は無視され、タグを閉じた有効な HTML が必要です。閉じ忘れると後続すべてが範囲に入り、内部の構造化データは引き続き利用できます。どちらもインデックス登録や順位には影響しません。nosnippetでも静止画像サムネイルは表示される場合があります。Bing はnosnippetをサポートしますが、data-nosnippetは文書化していません。
2つの制御と2つの適用範囲
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.
違いは適用範囲です。nosnippet はページ単位、data-nosnippet は範囲単位で機能します。目的に合わない方を選ばないよう、次の区別を保ってください。
nosnippet— robots メタタグまたはX-Robots-Tagヘッダーの値。ページ全体を抑止します。data-nosnippet—span/div/sectionに付ける HTML 属性。1つの範囲を抑止します。
どちらも表示の制御です。robots メタタグ群や X-Robots-Tag ヘッダーに関連し、max-snippet / max-image-preview の長さ制御と同じくプレビューを制限します。
nosnippet — ページ単位の robots 指示
構文(メタタグとヘッダー)
HTML では robots メタタグに設定します。
<meta name="robots" content="nosnippet">PDF、画像など <head> を追加できない非 HTML ファイルでは、HTTP レスポンスヘッダーとして送信します。
X-Robots-Tag: nosnippet同じ指示を2つの方法で配信できます。非 HTML リソースではヘッダーだけが利用できます。
実際に除外されるもの
Google の仕様では、nosnippet は “Do not show a text snippet or video
preview in the search results for this page.” (翻訳)「このページの検索結果にテキストスニペットや動画プレビューを表示しない」という意味です。同じ文書では “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.” (翻訳)「Google のウェブ検索、Google 画像検索、Discover、AI Overviews、AI Mode を含むすべての検索結果に適用され、AI Overviews と AI Mode の直接入力としての利用も防ぐ」と説明されています。 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
したがって、1つの指示で4つの効果があります。
- テキストスニペットを削除します。
- 動画プレビューを削除します。
- 強調スニペットの対象外にします。Google は確実に除外する方法として
nosnippetを示しています。 - AI Overviews と AI Mode の直接入力からコンテンツを除外します。
ただし nosnippet でも検索結果が完全に文字だけになるとは限りません。Google は “a static image thumbnail (if available) may
still be visible, when it results in a better user experience.” (翻訳)「ユーザー体験が向上する場合、利用可能な静止画像サムネイルは引き続き表示されることがある」と説明しています。テキストスニペットと動画プレビューはなくなりますが、画像が必ずゼロになるわけではありません。 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
設定しない場合、既定では “Google may generate a text snippet and video preview based on information found on the page.” (翻訳)「Google はページ上の情報に基づいてテキストスニペットと動画プレビューを生成する場合がある」とされています。
max-snippet:0 との関係
テキストについて nosnippet は max-snippet:0 と機能的に同等です。Google は max-snippet の 0 を “No snippet is to be shown. Equivalent
to nosnippet.” (翻訳)「スニペットを表示しない。nosnippet と同等」と説明しています。max-snippet は正の値で最大文字数を指定できる一方、nosnippet は表示するかしないかの二択です。
robots ルールが競合する場合は、より制限の強いものが適用されます。Google の例は “if a page has both max-snippet:50 and nosnippet rules, the
nosnippet rule will apply.” (翻訳)「ページに max-snippet:50 と nosnippet の両方がある場合、nosnippet が適用される」です。 Evidence for this claim `max-snippet:0` is equivalent to `nosnippet`, and if `nosnippet` conflicts with less restrictive snippet rules it takes precedence. Scope: public web and verified properties as applicable Confidence: high · Verified: Robots meta tag, data-nosnippet, and X-Robots-Tag specifications
data-nosnippet — 範囲単位の HTML 属性
構文と公式例
スニペットに使わせない文章を、その文章を囲む要素へ属性を付けて指定します。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.” (翻訳)「HTML ページの文章の一部をスニペットに使わないよう指定でき、span、div、section 要素の data-nosnippet 属性で要素単位に設定できる」と説明しています。有効な要素はこの3つだけで、任意のタグには使えません。 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-nosnippet
Google の公式例を原文どおり示します。
<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 -->boolean 属性
上の ="true" と ="false" は同じ動作です。Google の原文では “The data-nosnippet is considered a boolean
attribute. As with all boolean attributes, any value specified is ignored.” (翻訳)「data-nosnippet は boolean 属性であり、すべての boolean 属性と同様に指定した値は無視される」と説明されています。重要なのは属性の存在で、値を付ける必要はなく、="false" にしても無効にはなりません。
有効な HTML が必要(代表的な失敗)
見落とされがちですが、data-nosnippet が機能しない最も一般的な理由です。Google はレンダリング後のマークアップから属性を読み取るため、“To ensure machine-readability, the HTML section must be valid HTML
and all appropriate tags must be closed accordingly.” (翻訳)「機械可読性を確保するには、HTML の範囲が有効な HTML であり、必要なタグがすべて適切に閉じられていなければならない」と説明しています。
公式例の最後にある <div data-nosnippet>some text</html> を見てください。div が閉じられておらず、Google のコメントは “unclosed div will include all content afterwards.” (翻訳)「閉じられていない div は後続のすべての内容を含む」と結果を示します。つまり、閉じ忘れた保護範囲は追加部分を隠すのではなく、境界が壊れて意図どおり機能しません。data-nosnippet が効かない場合は、囲み要素が実際に閉じられているか確認します。
JavaScript の注意点
仕様には “To avoid uncertainty from rendering, do not add or
remove the data-nosnippet attribute of existing nodes through JavaScript.” (翻訳)「レンダリングの不確実性を避けるため、既存ノードの data-nosnippet 属性を JavaScript で追加・削除しない」とあります。サーバーが返す HTML に置き、クライアント側で切り替えないでください。要素を動的に作ること自体は可能で、作成時に属性を設定します。Google は “When adding DOM
elements through JavaScript, include the data-nosnippet attribute as necessary
when initially adding the element to the page’s DOM.” (翻訳)「JavaScript で DOM 要素を追加するときは、ページの DOM に最初に追加する時点で必要に応じて data-nosnippet 属性を含める」と案内しています。
強調スニペットからも除外され、内部の構造化データは利用可能
data-nosnippet で囲んだ範囲は通常のスニペットだけでなく、強調スニペットからも除外されます。ページ単位の nosnippet と範囲単位の data-nosnippet が併存する場合、より制限の強いページ単位のルールがページ全体で優先されます。
data-nosnippet は構造化データを無効にしません。Google は “structured data remains usable for search results when declared
within a data-nosnippet element.” (翻訳)「data-nosnippet 要素内で宣言された構造化データは検索結果で引き続き利用できる」と説明しています。この属性はテキストのスニペット候補だけを制御し、アクセス制御ではなく、ページ上の画像や他のメディアを隠しません。構造化データの説明項目には Google が別途示す max-snippet などの注意もあります。
どちらを使うか
判断基準は、ほぼ常に適用範囲と目的です。
- ページ全体のスニペットを隠す(強調スニペットやページ単位の AI Overviews 入力からも除外)→
nosnippet。 - 1つの段落やブロックだけを隠し、残りは利用可能にする →
data-nosnippet。 - 消さずに短くする → 長さ制御の
max-snippet:N。 - PDF など非 HTML ファイルに適用する → メタタグを置く
<head>がないためX-Robots-Tag: nosnippet。
AI Overviews からコンテンツを除外する
2025〜2026年にこの話題へ関心が集まる理由の1つが AI Overviews です。nosnippet と data-nosnippet はコンテンツを直接入力から除外しますが、反映には時間がかかります。Glenn Gabe 氏の事例では、nosnippet により AI Overview から一度すぐ消えたものの短期間で再表示され、John Mueller 氏の説明後、最終的には除外が定着しました。処理完了まで時間がかかったということです。設定後も表示されている場合は、すぐ失敗と判断せず反映を待ちます。
Gabe 氏が指摘したトレードオフにも注意してください。ページ全体の nosnippet は通常のスニペットも消し、説明文のない不自然な検索結果にします。AI 面から一部だけを除外したいなら、範囲単位の data-nosnippet または max-snippet の上限が穏当です。
さらに Google は、Search Console でプロパティ単位の 「Search generative AI」制御をテストしています。AI Overviews、AI Mode、Discover の生成 AI に対する include / exclude / inherit 設定です。ページ単位の HTML・ヘッダールールである nosnippet や、検索外の AI 学習・グラウンディングを制御する Google-Extended とは異なります。提供範囲は限定的で、Google によれば変更の反映には1〜2日以上かかることがあります。これは既存のページ単位制御に重ねる Search Console 設定であり、標準的な代替手段ではありません。 Evidence for this claim As of 2026-07-17, Google is testing a separate property-level Search generative AI include/exclude/inherit control for AI Overviews, AI Mode and generative AI in Discover; it does not affect other Search ranking/inclusion or AI training. Scope: public web and verified properties as applicable Confidence: high · Verified: Google common crawlers: Google-Extended
Bing と他の検索エンジン
対応差にも注意が必要です。Bing は nosnippet とスニペット長の制御をサポートしますが、data-nosnippet は文書化していません。範囲単位の属性は Google 固有と考えるべきです。すべての検索エンジンで有効だと仮定しないでください。
Apple は別の境界を説明しています。nosnippet があっても Apple はページタイトルを照合や発見に利用できますが、ページ本文を生成モデルの文脈には利用しません。これは Apple 固有の利用制御であり、nosnippet が URL を発見対象から削除するという一般的な主張ではありません。 Evidence for this claim Apple says a page marked nosnippet may still be matched or discovered using its title, but the page content is not used as context for generative models. Scope: Applebot and Apple generative-model context use; it does not describe Google, Bing, or generic indexing behavior. Confidence: high · Verified: Apple Support: About Applebot
受け入れるコスト
スニペットの表示資格は、失う可能性のある実質的な資産です。robots.txtで上位表示2ページをブロックした
話では、上位表示ページ2件を robots.txt でブロックしたところ、目立った損失としてすべての強調スニペットを失いました。これは nosnippet ではなく robots.txt の事例ですが、スニペット資格を手放すことには明確なコストがあるという教訓は同じです。nosnippet と data-nosnippet は、クロールブロックの副作用ではなく、ページ全体または1範囲を意図的に選べる点が異なります。価値に見合う箇所で使ってください。
AI要約
Advanced 版の要点をまとめます。
- 2つの制御と2つの範囲。
nosnippetはページ全体の robots 指示、data-nosnippetは範囲単位の HTML 属性です。 nosnippetは robots メタタグ(<meta name="robots" content="nosnippet">)またはX-Robots-Tag: nosnippetヘッダーに設定します。非 HTML の PDF などではヘッダーを使います。テキストスニペットと動画プレビューを削除し、強調スニペットの対象外にし、Google によれば AI Overviews と AI Mode の直接入力から除外します。nosnippet≈max-snippet:0。競合時はより制限の強いルールが優先され、nosnippetがmax-snippet:50より優先されます。data-nosnippetはspan、div、sectionだけで有効な boolean 属性です。="true"、="false"、値なしは同じ動作です。有効で閉じた HTML が必要で、閉じ忘れたタグは後続の境界を壊します。既存ノードへ JavaScript で後付けせず、ノード作成時に設定します。囲んだ文章は通常と強調の両スニペットから除外され、内部の構造化データは利用できます。nosnippetでも画像がゼロとは限りません。 静止画像サムネイルは表示される場合があります。- どちらもインデックス登録や順位には影響しません。 表示だけの制御です。
- AI Overviews への反映には時間がかかります。 ページ全体の
nosnippetは通常の説明文も消すため、一部だけならdata-nosnippetが穏当です。Google は別に Search Console のプロパティ単位 Search generative AI 制御も限定テスト中で、Google-Extendedとは別です。 - Bing は
nosnippetをサポートし、data-nosnippetは Google だけが文書化しています。
公式ドキュメント
検索エンジンが公開する一次資料です。
- Robots メタタグ、data-nosnippet、X-Robots-Tag の仕様 —
nosnippet、data-nosnippet、公式例、max-snippet:0との同等性を扱う仕様。 - 強調スニペットとウェブサイト — 強調スニペットからページを除外する方法。
nosnippetが確実な手段です。 - Google 検索の AI 体験でコンテンツを適切に表示する主な方法 — 2025年5月の Search Central ブログ。AI 体験のプレビュー制御として
nosnippet、data-nosnippet、max-snippet、noindexを列挙しています。 - Search generative AI 制御 — AI Overviews、AI Mode、Discover の生成 AI に対するプロパティ単位の include / exclude / inherit 設定。ページ単位の
nosnippetやGoogle-Extendedとは別です。
Bing / Microsoft
- ウェブ管理者向けBingスニペット制御の新しい選択肢 — 2020年4月の Bing Webmaster Blog。
nosnippetメタタグと長さ制御(max-snippet、max-image-preview、max-video-preview)への対応を確認できます。data-nosnippetの記載はありません。 - Bing がサポートするrobotsメタタグと属性 — JavaScript で描画される Bing のヘルプページ。
出典からの引用
Google の公式発言です。各リンクは出典ページの該当箇所へ直接移動します。
Google — nosnippet(robots メタタグ仕様)
- “Do not show a text snippet or video preview in the search results for this page.” (翻訳)「このページの検索結果にテキストスニペットや動画プレビューを表示しない」 — Google Search Central。 引用箇所へ
- “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.” (翻訳)「Google のウェブ検索、Google 画像検索、Discover、AI Overviews、AI Mode を含むすべての検索結果に適用され、AI Overviews と AI Mode の直接入力としての利用も防ぐ」 引用箇所へ
- “If you don’t specify this rule, Google may generate a text snippet and video preview based on information found on the page.” (翻訳)「このルールを指定しない場合、Google はページ上の情報に基づいてテキストスニペットと動画プレビューを生成する場合がある」 引用箇所へ
- “A static image thumbnail (if available) may still be visible, when it results in a better user experience.” (翻訳)「ユーザー体験が向上する場合、利用可能な静止画像サムネイルは引き続き表示されることがある」 引用箇所へ
Google — data-nosnippet(robots メタタグ仕様)
- “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.” (翻訳)「HTML ページの文章の一部をスニペットに使わないよう指定でき、span、div、section要素のdata-nosnippet属性で要素単位に設定できる」 引用箇所へ - “As with all boolean attributes, any value specified is ignored.” (翻訳)「すべての boolean 属性と同様に、指定した値は無視される」 引用箇所へ
- “To ensure machine-readability, the HTML section must be valid HTML and all appropriate tags must be closed accordingly.” (翻訳)「機械可読性を確保するには、HTML の範囲が有効な HTML であり、必要なタグがすべて適切に閉じられていなければならない」 引用箇所へ
- “To avoid uncertainty from rendering, do not add or remove the
data-nosnippetattribute of existing nodes through JavaScript.” (翻訳)「レンダリングの不確実性を避けるため、既存ノードのdata-nosnippet属性を JavaScript で追加・削除しない」 引用箇所へ - “When adding DOM elements through JavaScript, include the
data-nosnippetattribute as necessary when initially adding the element to the page’s DOM.” (翻訳)「JavaScript で DOM 要素を追加するときは、ページの DOM に最初に追加する時点で必要に応じてdata-nosnippet属性を含める」 引用箇所へ - “Structured data remains usable for search results when declared within a
data-nosnippetelement.” (翻訳)「data-nosnippet要素内で宣言された構造化データは検索結果で引き続き利用できる」 引用箇所へ
Google — max-snippet との同等性と競合解決
- “No snippet is to be shown. Equivalent to
nosnippet.” (翻訳)「スニペットを表示しない。nosnippetと同等」 引用箇所へ - “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.” (翻訳)「robots ルールが競合する場合はより制限の強いルールが適用される。たとえばmax-snippet:50とnosnippetの両方がある場合はnosnippetが適用される」 引用箇所へ
Google — 強調スニペットのオプトアウト
- “If you need a guaranteed solution, use the
nosnippetrule.” (翻訳)「確実な解決策が必要ならnosnippetルールを使う」 — Google「強調スニペットとウェブサイト」。 引用箇所へ
Google — AI 検索のプレビュー制御
- “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.” (翻訳)「nosnippet、data-nosnippet、max-snippet、noindexで表示設定を指定でき、より制限の強い許可は AI 体験でのコンテンツ表示を制限する」 — Google Search Central Blog、2025年5月。 引用箇所へ
nosnippet 対応の引用可能な出典には2020年4月の Bing ブログを使い、data-nosnippet は記載されていないとしています。Search Console の「Search generative AI control」も引用ではなく要約です。今回の更新時はヘルプページが bot 確認で取得できなかったため、直接引用する前にブラウザーで再確認してください。 スニペット抑止の早見表
nosnippet と data-nosnippet と max-snippet:0
| 制御 | 範囲 | 設定場所 | 効果 |
|---|---|---|---|
nosnippet | ページ全体 | Robots メタタグ(content="nosnippet")または X-Robots-Tag: nosnippet ヘッダー | テキストスニペットと動画プレビューを非表示。強調スニペット対象外。AI Overviews / AI Mode の直接入力から除外 |
data-nosnippet | 1つの範囲 | span、div、section の HTML 属性 | 囲んだ文章だけを非表示。ページの残りは候補のまま |
max-snippet:0 | ページ全体 | Robots メタタグ(content="max-snippet:0")またはヘッダー | テキストについて nosnippet と同じ(0 は「nosnippet と同等」) |
簡易ルール
- テキストでは
nosnippet≈max-snippet:0。競合時はより制限の強いルールが優先され、nosnippetがmax-snippet:50より優先されます。 data-nosnippetは boolean:="true"、="false"、値なしは同じ動作です。- 有効で閉じた HTML が必要です。閉じ忘れると後続すべての境界が崩れます。
- 既存ノードへ JavaScript で追加・削除せず、動的生成するならノード作成時に設定します。
- 囲んだ文章は強調スニペットからも除外され、両方がある場合はページ単位の
nosnippetが優先されます。 data-nosnippet内の構造化データは利用でき、画像や他のメディアは隠しません。対象はスニペット候補の文章だけです。nosnippetでも静止画像サムネイルは表示される場合があります。- PDF / 非 HTML → ヘッダーだけ:
X-Robots-Tag: nosnippet。 - どれもインデックス登録や順位には影響せず、表示だけを制御します。
- Bing:
nosnippetと長さ制御をサポートし、data-nosnippetは文書化していません。 - Search Console のプロパティ単位 「Search generative AI」制御は別の限定テストで、ページ単位の
nosnippetやGoogle-Extendedとは異なります。
どれを選ぶ?
- スニペット全体を消す(強調スニペットやページ単位の AI Overviews 入力からも除外)→
nosnippet。 - 1段落だけを隠し、残りは表示候補にする →
data-nosnippet。 - 短くするだけ → 長さ制御の
max-snippet:N。
避けるべきスニペット制御の誤り
- 機微な1範囲だけを除外したいのに
nosnippetを使う。 data-nosnippetがクロール、インデックス登録、ページアクセスを防ぐと考える。- 無効なマークアップへ属性を付ける、または遅いクライアント描画の後だけ追加する。
- クローラーが指示を読めないよう robots.txt でページをブロックする。
- クリック率への影響を受け入れずにスニペットを抑止する。
data-nosnippetがページ上の画像、他のメディア、構造化データも隠すと考える。除外するのは囲んだ文章のスニペット利用だけです。nosnippetなら検索結果の画像もゼロになると考える。静止画像サムネイルは表示される場合があります。
よくあるスニペット制御の問題
スニペットに文章が残る
原因: data-nosnippet が間違った要素にある、マークアップが無効、またはレンダリング時に属性が存在しません。修正: レンダリング後の要素を調べ、除外したい文章を正確に囲む有効な div、span、section へ boolean 属性を移します。
検索結果全体から説明文が消える
原因: ページ単位の nosnippet または同等の抑止を使っています。修正: ページの一部だけを除外するなら削除し、範囲単位の data-nosnippet を使います。
変更がすぐ反映されない
原因: 検索結果は再クロールと処理後に更新されます。修正: 最初にライブのマークアップを検証し、指示を何度も変えず再クロール後まで監視します。
どのスニペット制御が合うか
Choose a snippet-suppression control
理解度を確認
実用例
ページ全体を抑止(HTML)
<head>
<meta name="robots" content="nosnippet">
</head>ページ全体を抑止(PDFなど非HTML)
X-Robots-Tag: nosnippet1つのインライン句を隠し、残りを表示候補にする
<p>This text can be shown in a snippet
<span data-nosnippet>and this part would not be shown</span>.</p>ブロック全体を隠す(div または 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 — 次はすべて同じ動作(値は無視)
<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>失敗例 — 使用しないこと
<div data-nosnippet>some text</html>
<!-- unclosed "div": everything after it leaks back into the snippet -->すべての data-nosnippet 要素を閉じます。マークアップが有効でなければ Google は境界を読めず、保護は意図どおり機能しません。
動的に追加する場合 — 後付けせず作成時に設定
// 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 変更履歴
2026年8月13日に更新。
編集概要と記録された変更の詳細。変更の詳細
-
変更の詳細な注記は現在英語でのみ提供されています。
-
変更の詳細な注記は現在英語でのみ提供されています。
-
変更の詳細な注記は現在英語でのみ提供されています。
完全な比較は利用できません — この改訂の以前のスナップショットがアーカイブされていません。
2026年7月19日に更新。
編集概要と記録された変更の詳細。変更の詳細
-
変更の詳細な注記は現在英語でのみ提供されています。
完全な比較は利用できません — この改訂の以前のスナップショットがアーカイブされていません。
2026年7月18日に更新。
編集概要と記録された変更の詳細。変更の詳細
-
変更の詳細な注記は現在英語でのみ提供されています。
-
変更の詳細な注記は現在英語でのみ提供されています。
-
変更の詳細な注記は現在英語でのみ提供されています。
-
変更の詳細な注記は現在英語でのみ提供されています。
完全な比較は利用できません — この改訂の以前のスナップショットがアーカイブされていません。