Skip to content
AnswerWell geo Documentation

Research · 6 min read · Answerwell

noindex, robots Meta Tag, and X-Robots-Tag: Crawling, Indexing, and Snippets

How noindex and X-Robots-Tag block search results, why robots.txt is not enough, and how Google and Bing apply page-level rules.

Most of this page draws on Google Search documentation for noindex, the robots meta tag and X-Robots-Tag specifications, and related crawling guidance, with Bing Webmaster Guidelines and Bing robots meta tags where behavior overlaps or differs. If you want a URL out of search results but still reachable by link, page-level directives are the usual answer—not robots.txt alone.

Crawling vs indexing: why robots.txt is not noindex

Section titled “Crawling vs indexing: why robots.txt is not noindex”

robots.txt controls crawl access, not whether a URL is indexed. Bing states this plainly in its Webmaster Guidelines:

robots.txt controls crawl access, not indexing.

Google makes the same distinction for site owners choosing how to block content:

A robots.txt is not a mechanism for keeping a web page out of Google. To keep a web page out of Google, use the noindex robots rules, or password-protect your page.

— Google, Get started with Search: a developer’s guide

Goal Typical mechanism Crawler must reach the URL?
Stop crawling a path robots.txt Disallow No (crawler obeys without fetching)
Keep URL out of search results noindex (meta or X-Robots-Tag) Yes — the rule is read during crawl
Hide from users and crawlers Login, password, or remove content Depends on setup

While blocking crawl can prevent indexing of images and video in some cases, Google notes that a page URL may still appear in results without body content if only crawl is blocked—see Google Search technical requirements.

noindex tells supporting crawlers not to show the page, file, or resource in search results. Google defines the rule in Block Search indexing with noindex:

noindex is a rule set with either a <meta> tag or HTTP response header and is used to prevent indexing content by search engines that support the noindex rule, such as Google. When Googlebot crawls that page and extracts the tag or header, Google will drop that page entirely from Google Search results, regardless of whether other sites link to it.

Common situations from Google’s control what you share guidance include restricting data meant only for on-site users, keeping low-value or user-generated pages out of results, and focusing crawl on important URLs on very large sites. For share-by-link pages (collaboration, sandboxes), prevent user-generated spam recommends noindex or default crawl blocks via robots.txt.

noindex does not stop direct visits: content can still be opened with a URL. For confidential material, Google ranks password protection or removal above noindex alone.

Implementing noindex: meta tag and X-Robots-Tag

Section titled “Implementing noindex: meta tag and X-Robots-Tag”

Google documents two equivalent channels in Block Search indexing with noindex: HTML <meta> in the document head, or the X-Robots-Tag HTTP response header (especially for PDFs, images, and other non-HTML URLs).

For all crawlers that respect the generic tag:

<meta name="robots" content="noindex">

For Google only:

<meta name="googlebot" content="noindex">

Bing allows name="bingbot" for Bing-only rules per Robots meta tags that Bing supports. Bing’s Block URLs from Bing calls a NOINDEX meta tag in the HTML header the best way to block URLs you publish on your own site.

You may combine rules, e.g. content="noindex, nofollow". Google does not support noindex inside robots.txt; see Implementing noindex.

If you use a CMS (WordPress, Wix, Blogger, etc.), use its search or SEO settings or follow CMS docs for editing <head>—Google’s meta tags guidance describes that pattern.

Any robots meta value can be sent as a header. Example from Google:

HTTP/1.1 200 OK
(...)
X-Robots-Tag: noindex
(...)

— Google, Block Search indexing with noindex

Google’s robots meta tag specifications document comma-separated rules, multiple headers, and optional user-agent prefixes (e.g. googlebot: nofollow). Hosting platforms often set headers globally: Cloudflare Pages _headers and Workers static assets _headers show X-Robots-Tag: noindex on *.pages.dev and *.workers.dev URLs; preview deployments add X-Robots-Tag: noindex by default. Crawler Hints lists origin headers, HTML meta, or a Cloudflare Transform Rule as ways to stop indexing a specific page.

none is equivalent to noindex, nofollow in Google’s rule list on the same specifications page.

Indexing and how results look are separate levers. Google’s snippet documentation and the robots meta tag specifications cover:

Rule Effect (Google)
nosnippet / max-snippet:0 No text snippet or video preview; may still show a static image thumbnail
max-snippet:[number] Caps snippet length; 0 equals nosnippet
data-nosnippet on div, span, section Excludes that HTML from snippets
noimageindex Do not index images on the page (per-page; not a substitute for image URL headers)

For featured snippets, Google says low max-snippet may reduce featured-snippet eligibility but does not guarantee opt-out; nosnippet is the guaranteed block for all snippets.

Provider difference: Bing still documents NOARCHIVE and NOCACHE for Copilot and grounding in Webmaster Guidelines—e.g. NOCACHE limits Copilot to URL, title, and snippet. Google lists noarchive and nocache as historical rules Google Search no longer uses. For Bing indexing plus AI display, read Robots meta tags that Bing supports alongside Google’s table above.

When rules conflict on one page, Google applies the more restrictive rule (e.g. nosnippet wins over max-snippet:50) per meta tags that Google supports.

  • Disallow in robots.txt plus noindex on the same URL — Crawlers may never see noindex; fix by allowing crawl of URLs that carry the directive (combining robots.txt with meta rules).
  • Expecting instant removal — Google must recrawl; low-priority URLs can take months. Use URL Inspection to request recrawl; see Debugging noindex issues.
  • JavaScript-only noindex — Google recommends avoiding injecting or changing robots meta via JavaScript; if noindex is present initially, Google may skip rendering, so later JS changes may not apply (JavaScript SEO basics, special tags).
  • Invalid <head> markup — Elements like iframe or img in <head> can cause Google to stop parsing <head> early (valid page metadata).
  • Treating nofollow as indexing control — For your own URLs, Google points to noindex with crawl allowed, not rel="nofollow" alone (qualify outbound links).
  • Images — Page-level noimageindex may not block the same image found on another URL; image files often need X-Robots-Tag: noindex or Googlebot-Image Disallow rules (remove images from search results).

Lighthouse reminds auditors: only block indexing for content you truly do not want in search results.

  1. Confirm the URL is not blocked in robots.txt if you rely on noindex (Google debugging guidance).

  2. Fetch the live response: view HTML for <meta name="robots" content="noindex"> or run curl -I against the URL and look for x-robots-tag: noindex (as in Cloudflare preview deployment checks).

  3. In Google Search Console, use the URL Inspection tool to see the HTML and headers Googlebot received and whether a noindex rule was detected; use the Page Indexing report for site-wide status.

  4. For Bing, ensure Bingbot can crawl the page and verify meta or headers align with Block URLs from Bing.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.