Configure snippet and preview control directives to manage how content is quoted in search results

domain: robots-directives · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Distinguish directive layers: robots.txt controls crawling access, while meta robots/X-Robots-Tag and data-nosnippet control what's shown from an already-indexed page
  2. Add nosnippet to a meta robots tag or X-Robots-Tag header to suppress all text/video snippets for a page
  3. Use max-snippet:[number], max-image-preview:[standard|large|none], and max-video-preview:[number] to cap preview sizes without fully suppressing them
  4. Wrap specific on-page HTML elements in a data-nosnippet attribute to exclude just that fragment (e.g., a price or disclaimer) from snippets while allowing the rest of the page to be quoted
  5. Test with URL Inspection or a live fetch and confirm the served snippet respects the directive combination

Known gotchas

Related routes

Control snippet and preview length in Google Search results using robots meta directives
developers.google.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans