nosnippetとdata-nosnippet

nosnippetはページ全体、data-nosnippetは1範囲だけのスニペット表示を抑止します。適用範囲、有効なHTMLの要件、AI Overviewsへの影響を解説します。

初回公開:2026年6月23日 · 最終更新:2026年8月13日 · Advanced
言語

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制御も限定テストしています。

要点 — nosnippet は robots 指示(robots メタタグまたは X-Robots-Tag: nosnippet ヘッダー)で、ページ全体のテキストスニペットと動画プレビューを抑止します。強調スニペットの対象外となり、Google によれば AI Overviews と AI Mode の直接入力からも除外されます。テキストについては max-snippet:0 と同等で、競合時はより制限の強いルールが優先されます(nosnippetmax-snippet:50 より優先)。data-nosnippetspan / div / section だけで有効な HTML 属性で、通常スニペットと強調スニペットの両方から1つの範囲を除外します。boolean 属性なので値は無視され、タグを閉じた有効な HTML が必要です。閉じ忘れると後続すべてが範囲に入り、内部の構造化データは引き続き利用できます。どちらもインデックス登録や順位には影響しません。nosnippet でも静止画像サムネイルは表示される場合があります。Bing は nosnippet をサポートしますが、data-nosnippet は文書化していません。

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-nosnippet

2つの制御と2つの適用範囲

Choose by scope: `nosnippet` removes the page preview; `data-nosnippet` excludes only selected HTML from Google's snippet.

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-nosnippetspan / 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つの効果があります。

  1. テキストスニペットを削除します。
  2. 動画プレビューを削除します。
  3. 強調スニペットの対象外にします。Google は確実に除外する方法として nosnippet を示しています。
  4. 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 との関係

テキストについて nosnippetmax-snippet:0 と機能的に同等です。Google は max-snippet0“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:50nosnippet の両方がある場合、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 ページの文章の一部をスニペットに使わないよう指定でき、spandivsection 要素の 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 です。nosnippetdata-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 の事例ですが、スニペット資格を手放すことには明確なコストがあるという教訓は同じです。nosnippetdata-nosnippet は、クロールブロックの副作用ではなく、ページ全体または1範囲を意図的に選べる点が異なります。価値に見合う箇所で使ってください。

Add an expert note

Pin an expert quote

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