A noindex rule tells search engines that a page may be crawled but should not be shown in search results. It can live in the HTML, as a robots meta tag, or in the HTTP response, as an X-Robots-Tag header. Google documents both, and when Googlebot sees either one on its next crawl, it drops the page from results even if other sites link to it.
That is exactly what you want for a checkout confirmation page or a set of internal search results. It is exactly what you do not want on your home page, and yet accidental noindex is one of the most common reasons a freshly launched site never appears in search: a staging setting, a plugin checkbox or a server header travels to production unnoticed.
This guide explains how noindex works, when it is the right tool, how it gets left behind, why robots.txt is not a substitute, how to find and remove it on common stacks, and how to verify the fix in Google Search Console. All examples use example.com.
Scope of this guide
This guide covers noindex signals in public HTML and HTTP headers. Sitelemetry reads only the robots or googlebot meta tag, not the X-Robots-Tag header, on a limited number of pages at one moment; it cannot see Search Console data or Google's final indexing decision.
1. What a noindex finding means
A page is marked noindex when its response carries an indexing rule that tells search engines to leave it out of their index. Google's robots meta tag specification describes two equivalent places for it.
In the <head> of an HTML page:
<meta name="robots" content="noindex">Or as an HTTP response header, which also works for PDFs, images and other files without a <head>:
X-Robots-Tag: noindexA few variants mean the same thing in practice:
noneis shorthand fornoindex, nofollow.name="googlebot"targets only Google's crawler, so a page can be noindex for Google and indexable for other engines, or the reverse.- A header with a user agent, such as
X-Robots-Tag: googlebot: noindex, scopes the rule the same way.
Values are case-insensitive and can be combined with commas. Google states that when rules conflict, it applies the more restrictive one, so index in the meta tag does not cancel noindex in the header. Noindex is a rule about appearing in results, not about access: the page still loads for visitors, and crawlers still fetch it.
2. When noindex is the right choice
Noindex is the correct tool for pages that are useful to visitors but useless, or misleading, as a search result. Typical examples:
- order confirmations, thank-you pages after a form, and download pages that only make sense after a step;
- internal site search result pages, which can generate an endless number of thin URLs;
- account, cart and checkout pages behind a session;
- tag or filter combinations you keep for navigation but do not want as landing pages;
- a whole staging or preview environment that must stay public for testing, as a second line of defence behind authentication;
- files such as internal PDFs that are linked publicly but should not rank, using the header form.
Two cases where noindex is the wrong tool. First, private content: noindex hides a page from results, but anyone with the URL can still open it, so use authentication instead. Second, duplicates you want consolidated: Google's guidance on canonicalization recommends rel="canonical" or redirects to pick the preferred URL, rather than noindex on the alternatives.
3. How accidental noindex slips in after a launch
Most unwanted noindex rules were deliberate somewhere else. The pattern is a protection meant for a staging site that reaches production. Common routes:
- CMS visibility settings. WordPress has a "Discourage search engines from indexing this site" option under Settings, Reading. It is often ticked during development and forgotten, and it adds a robots meta tag with noindex to every page.
- SEO plugin defaults. Per-post or per-content-type toggles in plugins can mark whole post types, categories or author archives as noindex. A settings import from staging copies them over.
- Environment variables. Frameworks often set robots metadata from a flag such as an environment name. If production builds with the staging value, every page ships with
noindex. - Server or CDN headers. An
add_header X-Robots-Tag "noindex"line in a shared nginx include, an ApacheHeader setdirective, a_headersfile on a static host or an edge rule applies to every response that passes through it, including the new production domain. - Templates and layouts. A hard-coded meta tag in a base layout, added for a maintenance page or a soft launch, stays in place for every page that inherits it.
- Migrations. Moving to a new CMS or theme resets per-page flags, or carries over pages that were noindex on the old site.
None of these produce a visible change for visitors, which is why the problem can persist for weeks. The first signals are usually traffic that never arrives and the Page indexing report in Search Console.
4. Noindex versus robots.txt: different jobs
robots.txt, standardized in RFC 9309, controls crawling: which paths a crawler may request. Noindex controls indexing: whether a fetched page may appear in results. Google's robots.txt introduction states plainly that robots.txt is not a mechanism for keeping a page out of Google.
| Mechanism | What it controls | Can the URL still appear in results? | Typical use |
|---|---|---|---|
| robots meta noindex | Indexing of an HTML page | No, once Google has recrawled and seen the rule | Thank-you pages, internal search, account pages |
| X-Robots-Tag: noindex | Indexing of any response, HTML or not | No, once recrawled | PDFs, images, whole environments via server config |
| robots.txt Disallow | Crawling of matching paths | Yes: a blocked URL can be indexed without its content if it is linked elsewhere | Reducing crawl of low-value or heavy paths |
| Authentication | Access for everyone | No content can be fetched or indexed | Private content, staging sites |
| rel="canonical" | Which duplicate is preferred | The preferred URL appears instead of alternatives | Parameter and duplicate URLs |
The key interaction: Google's noindex documentation says the rule only works if the crawler can fetch the page. If robots.txt disallows the path, Googlebot never sees the noindex, and the URL may stay in results. To remove a page from search, allow crawling and serve noindex. Google also stopped supporting noindex lines inside robots.txt in 2019, so they have no effect there. The robots.txt and indexing audit guide covers the crawl side in more depth.
5. Finding where the noindex comes from
Start by confirming what the page actually sends. These commands read your own page's headers and HTML:
# headers only, following redirects
curl -sSL -D - -o /dev/null https://example.com/ | grep -i x-robots-tag
# robots meta tags in the delivered HTML
curl -sSL https://example.com/ | grep -io '<meta[^>]*name="\(robots\|googlebot\)"[^>]*>'The second command is a quick filter, not a parser: attribute order or quoting can differ, so if it finds nothing, open the page source in the browser and search for robots. With -L, curl prints headers for every redirect hop, so you can see whether a header comes from the redirect or the final page. On Windows, call curl.exe and use -o NUL.
Then trace the source by layer:
| Where you see it | Likely origin | Where to fix it |
|---|---|---|
| Meta tag on every page | CMS visibility setting, base layout or environment flag | CMS settings, layout template, build-time variables |
| Meta tag on some pages or one content type | SEO plugin per-type or per-page setting | Plugin settings for that type, then the individual page |
| Header on every response | Shared web server include or CDN rule | nginx or Apache config, edge or transform rules, static host header file |
| Header only on files such as PDFs | A location or file-match rule | The matching server block; confirm it is intended |
| Header present at the edge but not at the origin | CDN configuration or a cached response | CDN rules, then purge the cache |
To tell origin from CDN, request the origin directly if you have an internal hostname or IP for it, and compare. If the header appears only in edge responses, the rule lives in the CDN.
6. Removing noindex safely
- Decide page by page. List the URLs that should be indexed. Do not remove noindex from thank-you pages, internal search or account areas just because a report flagged them.
- Fix the source, not the symptom. Untick the CMS visibility option, correct the plugin rule, remove the layout tag, or delete the server or CDN header for production hosts. If staging shares the config, scope the header to the staging hostname instead of deleting it.
- Keep staging protected another way. Put staging behind authentication so it no longer depends on a noindex rule that can be copied.
- Purge caches. Full-page caches and CDNs may keep serving the old HTML or headers until purged.
- Check robots.txt. Make sure the pages you want indexed are not disallowed; otherwise Google cannot recrawl them to see the change.
- Re-run the curl checks from section 5 on a sample of page types: home page, a category, an article, a product.
- Ask Google to recrawl the most important URLs and submit or resubmit your sitemap, as described in the next section.
For future launches, add a release check that fails when production responses contain noindex on pages that should rank. A short script that runs the two curl commands against a list of key URLs after each deploy is enough to catch a returning staging flag. The technical SEO audit guide lists related checks to run at the same time.
7. Verifying the fix in Google Search Console
Search Console shows what Google saw, which can differ from what you see in your browser.
- URL Inspection. Enter the URL in the URL Inspection tool. Under page indexing, the "Indexing allowed?" line reports whether noindex was detected and whether it came from the robots meta tag or the X-Robots-Tag header. The default view shows the last crawl; use "Test live URL" to fetch the current version. If the live test shows indexing allowed, use "Request indexing" for that page.
- Page indexing report. The Page indexing report groups non-indexed URLs by reason, including "Excluded by 'noindex' tag". Review the example URLs, separate intended exclusions from mistakes, and after fixing, use "Validate fix" to have Google recheck the group. Validation can take some time.
- Sitemaps. A sitemap should list only URLs you want indexed. If it contains noindex pages, either the sitemap or the noindex is wrong.
Removing noindex does not make a page appear immediately. Google has to recrawl it, and indexing is still Google's decision based on quality and other signals. Expect the change to spread over days to weeks for a whole site, faster for pages you request individually.
8. Edge cases that trip people up
- JavaScript changes. Google's JavaScript documentation warns that if the original HTML contains noindex, Google may skip rendering, so removing the tag with client-side JavaScript may never be seen. Adding noindex with JavaScript is also unreliable. Serve the correct value in the initial HTML or header.
- Conflicting rules. Two robots meta tags, or a meta tag plus a header, combine. The most restrictive rule wins, so one leftover
noindexis enough. - Crawler-specific tags. A
googlebotmeta tag with noindex blocks Google even when the generalrobotstag saysindex. Search the source for both names. - Redirects and errors. A noindex on a URL that redirects, or on a 404 page template, does not matter for the destination. Check the final URL that returns 200.
- Different responses for different clients. Some setups vary output by user agent, cookie or region. Compare the URL Inspection live test with your curl output if they disagree.
- Non-HTML files. PDFs can only be noindexed with the header. Check them with the header command, not by viewing source.
- Other engines and crawlers. Noindex is documented by search engines for their own indexes. AI assistants and their crawlers publish their own controls, which the guide to AI crawlers and robots.txt covers; see the website audit guide for how indexing fits with the other audit areas.
9. What Sitelemetry checks for noindex
The technical SEO audit reads the URL you enter and further pages of the same site: up to 5 pages on Starter, 15 on Professional and 30 on Enterprise. It reads the HTML your server delivers, does not run JavaScript and runs on any public URL without ownership verification. On each page it checks the robots meta tag in the HTML head (the robots tag, or the googlebot tag when there is no robots tag) for the noindex value. It does not read the X-Robots-Tag response header and does not treat none as noindex, and a googlebot tag is not read when a robots tag is also present, so check headers and both tag names with the commands in section 5.
- If the URL you entered is marked noindex, it reports seo.meta.noindex ("Page is marked noindex") in the indexability category, at high severity, and while it is present the SEO score is capped at 49. The evidence shows the robots directive content it found, and the recommendation is not to use a noindex robots meta tag or X-Robots-Tag on pages that should be indexed.
- Other pages the audit reaches that carry noindex are treated as intentional exclusions: they are left out of the page checks and counted in the passed check "Secondary noindex pages are excluded from the organic score" instead of being reported as findings.
- Pages without noindex get a passed check, "No noindex block", with the robots content or a note that no robots meta was present.
- Pages that fail or return an error status get a separate HTTP status finding instead, and non-HTML resources are marked not applicable, so noindex is not evaluated on them.
The audit reads pages as they are served at that moment. It cannot tell whether a noindex is intentional, does not see Search Console data, and does not decide what Google indexes, so review each flagged URL against your own list from section 6, and verify headers with curl as shown above. The technical SEO audit is included in Starter ($49/month), Professional ($149/month) and Enterprise ($249/month) and is not included in the Free plan, which covers security audits. A Free account can run it with audit credits: one credit runs one audit in one area at Professional depth (for this audit, up to 15 pages), a new Free account starts with one welcome credit per area, and credits work in the web app and through the MCP connection. See pricing for plan details.
Common questions
How do I know if a page is marked noindex?
Look for a robots or googlebot meta tag containing noindex or none in the page source, and check the response headers for X-Robots-Tag with curl. In Google Search Console, the URL Inspection tool reports whether indexing is allowed and whether noindex came from the meta tag or the header.
How do I remove a noindex tag?
Find its source first: a CMS visibility setting, an SEO plugin rule, a layout template, a build variable or a server or CDN header. Change it there, purge caches, confirm with curl that the page no longer sends noindex, make sure robots.txt allows crawling, then request indexing in Search Console.
Should I use robots.txt or noindex to keep a page out of Google?
Use noindex. robots.txt only controls crawling, and a disallowed URL can still be indexed without its content if other pages link to it. Noindex works only if Google can crawl the page, so do not disallow it in robots.txt at the same time.
How long does it take for a page to return after removing noindex?
Google has to recrawl the page first. Requesting indexing in the URL Inspection tool can speed this up for individual URLs, while a whole site may take days to weeks. Indexing remains Google's decision, so removing noindex makes a page eligible to appear, not certain to.
Is noindex enough to protect a staging site?
No. Noindex hides pages from search results but leaves them open to anyone with the URL, and the setting is easy to copy into production by mistake. Protect staging with authentication, and keep noindex only as an extra layer scoped to the staging hostname.
Sources & further reading
- Google Search Central: Block Search indexing with noindexdevelopers.google.com
- Google Search Central: Robots meta tag, data-nosnippet, and X-Robots-Tag specificationsdevelopers.google.com
- Google Search Central: Introduction to robots.txtdevelopers.google.com
- Search Console Help: URL Inspection toolsupport.google.com
- Search Console Help: Page indexing reportsupport.google.com
- MDN: X-Robots-Tag headerdeveloper.mozilla.org
- RFC 9309: Robots Exclusion Protocolwww.rfc-editor.org
Prepared by the Sitelemetry editorial team. Explore the linked sources for further detail.



