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.
| 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: what it does and when to use it
Section titled “noindex: what it does and when to use it”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).
robots meta tag in HTML
Section titled “robots meta tag in HTML”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.
X-Robots-Tag HTTP header
Section titled “X-Robots-Tag HTTP header”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.
Snippet and display rules beyond noindex
Section titled “Snippet and display rules beyond noindex”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.
Common mistakes and edge cases
Section titled “Common mistakes and edge cases”Disallowinrobots.txtplusnoindexon the same URL — Crawlers may never seenoindex; 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; ifnoindexis present initially, Google may skip rendering, so later JS changes may not apply (JavaScript SEO basics, special tags). - Invalid
<head>markup — Elements likeiframeorimgin<head>can cause Google to stop parsing<head>early (valid page metadata). - Treating
nofollowas indexing control — For your own URLs, Google points tonoindexwith crawl allowed, notrel="nofollow"alone (qualify outbound links). - Images — Page-level
noimageindexmay not block the same image found on another URL; image files often needX-Robots-Tag: noindexorGooglebot-ImageDisallowrules (remove images from search results).
Lighthouse reminds auditors: only block indexing for content you truly do not want in search results.
How to check this on your site
Section titled “How to check this on your site”-
Confirm the URL is not blocked in
robots.txtif you rely onnoindex(Google debugging guidance). -
Fetch the live response: view HTML for
<meta name="robots" content="noindex">or runcurl -Iagainst the URL and look forx-robots-tag: noindex(as in Cloudflare preview deployment checks). -
In Google Search Console, use the URL Inspection tool to see the HTML and headers Googlebot received and whether a
noindexrule was detected; use the Page Indexing report for site-wide status. -
For Bing, ensure Bingbot can crawl the page and verify meta or headers align with Block URLs from Bing.
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”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.