Noindex troubleshooting: keeping the right pages in search

Check whether a search instruction is keeping a public page out of Google, and understand why blocking crawling can hide that instruction.

A housekeeper with a trolley faces a closed gate separating them from two hotel doors carrying hand-symbol signs.

Noindex is a small instruction with a big effect. One line tells Google not to show a page in search results. It's very useful when you mean it. It's a problem when a theme, plugin or staging setting leaves it switched on after launch without anyone noticing. And there's a twist worth knowing: if you also block the page in robots.txt, Google may never see the noindex at all.

What noindex does

Google's robots meta tag documentation describes noindex as telling Google not to show a page, media or resource in search results.

It's different from robots.txt:

  • robots.txt tells crawlers which URLs they may access. Google's robots.txt introduction says it's used mainly to avoid overloading your site with requests, and is not a mechanism for keeping a page out of Google.
  • noindex tells Google not to show the page in results, once Google has been able to read it.

The two places it can live

Google says there are two ways to set noindex, with the same effect:

  • A <meta> tag in the page's <head>.
  • An HTTP response header (X-Robots-Tag), which works for non-HTML files such as PDFs as well.

Google also says that putting noindex in robots.txt is not supported.

So when you go looking, check both places. A page can look clean in its code and still carry a noindex in its headers, set by the server or a plugin.

The robots.txt trap

Google is explicit: for noindex to work, the page must not be blocked by robots.txt, and it has to be otherwise accessible to the crawler. Its robots meta tag documentation explains why: if a page is disallowed in robots.txt, any indexing rules on it won't be found, so they're ignored.

That leads to a confusing result. Google's robots.txt guide says that if other pages link to a blocked page, Google could still index the URL without visiting it. The URL can appear in results without a description.

So the combination of "blocked in robots.txt, plus noindex on the page" can leave a URL showing in Google when you wanted it gone.

When a page is missing from Google

Work through these in order:

  1. Check the page's code for a robots meta tag containing noindex.
  2. Check the response headers for X-Robots-Tag: noindex. Your developer or a browser's developer tools can show these.
  3. Check your platform settings. Look for page visibility or search indexing settings. Being excluded from a sitemap is different from carrying a noindex instruction; inspect what the published page actually returns.
  4. Check SEO plugins. On WordPress, a plugin may set noindex on whole content types.
  5. Check for JavaScript changes. Google's documentation notes that how it handles a noindex in pages that use JavaScript isn't well defined and might change. If there's any chance you want the page indexed, don't put noindex in the original page code.

First confirm that the page is meant to be public. Remove only unintended restrictions, publish and check the response again. Removing noindex makes indexing possible; it does not guarantee inclusion or a particular position in Google.

When a page won't leave Google

If you want a page out of Google and it's still showing:

  • For an otherwise public page, check robots.txt. Google needs permission to crawl it to see noindex.
  • Add noindex as a meta tag or header.
  • Protect private content with authentication. Noindex controls search visibility, not who can open the URL. Do not make confidential pages publicly crawlable just to remove them from search.

Google has to recrawl the page before the change takes effect.

Check what your pages actually say

CAFMO checks the headers and initial HTML of the pages you choose for the tested restrictive directives, such as noindex, nosnippet and a zero-length snippet. It shows you any it finds. It's plain about its limits:

  • it doesn't check directives added later by scripts after the page renders;
  • it doesn't check the separate Search Console generative AI setting.

When you've removed an unintended noindex, recheck the page. The result is saved with its date. See how CAFMO checks work.

Frequently asked questions

Can I put noindex in robots.txt?

Google says that isn't supported. Use a meta tag or an X-Robots-Tag header instead.

I blocked a page in robots.txt. Why is it still in Google?

A link elsewhere can let Google discover the URL without visiting it. For an otherwise public page, allow crawling so Google can read noindex. For private material, use authentication instead.

Does noindex affect other search engines?

Google's documentation says the meta tag works for all search engines that support the noindex rule. Check each search engine's own documentation for how it handles it.

Sources and further reading

Create your CAFMO accountSee how CAFMO worksCompare plans