The noindex tag tells search engines not to show a page in their results. You add it as <meta name="robots" content="noindex"> in the page’s <head>, or send it as an X-Robots-Tag: noindex HTTP header for files such as PDFs, images and video. Google has to crawl the page to see the rule, so never block a noindexed page in robots.txt.

Use noindex for pages that visitors need but searchers don’t, such as thank-you pages and filter combinations. Then check that the rule is really in place, in the HTML and in the headers. Most guides skip that step. For how Google decides what to store in the first place, see our guide to indexing in SEO.

What is the noindex tag?

When Googlebot crawls a page and finds a noindex rule, it drops the page from search results. The page still works for anyone who visits it. There are two ways to send the rule:

<meta name="robots" content="noindex">
X-Robots-Tag: noindex

To apply the rule to Google only, use <meta name="googlebot" content="noindex">. Other crawlers ignore that version. Both forms are documented in Google’s robots meta tag specification.

Meta tag or X-Robots-Tag: which is better?

Both have the same effect. Use the meta tag for HTML pages you edit in your CMS. Use the header for files that have no <head>, like PDFs, and for server rules that cover many URLs at once. The catch with the header is that it never appears in the page source, so it is easy to miss when you check a page.

Why noindex matters

Noindex keeps pages that will never be a good answer out of the index: confirmation pages, near-empty tag archives, endless filter URLs. Searchers stop landing on pages that are useless to them, and the pages you do want found stand out.

It is not a privacy tool. A noindexed page is still open to anyone with the link, so anything private needs a login.

The risk also runs the other way. One noindex in the wrong template can take a whole section out of Google, and you often notice only when clicks fall.

Noindex vs robots.txt, canonical and nofollow

DirectiveWhat it controlsUse it when
noindexWhether the page appears in resultsVisitors need the page, searchers don’t
robots.txt DisallowWhether crawlers fetch the URLYou want to save crawling on low-value areas
canonicalWhich duplicate URL gets indexedThe same content lives at several URLs
nofollowWhether links on the page are followedYou don’t vouch for the links on a page

Noindex controls indexing, and robots.txt controls crawling. If robots.txt blocks a page, Google never fetches it and never sees the noindex. Google’s noindex documentation also confirms that a noindex line inside robots.txt is not supported. Google stopped honouring it on 1 September 2019.

A table comparing noindex, robots.txt, canonical and nofollow by what each controls and its effect on the page.
Only noindex removes a page from results, and only if robots.txt still lets Google crawl it.

Nofollow is not a substitute for noindex. It only affects links, so a nofollowed page can still be indexed.

When to use noindex

Good candidates:

  • Thank-you and order confirmation pages.
  • Faceted navigation pages, such as /shoes?colour=red&size=9.
  • Internal search results pages.
  • Thin archive pages your CMS creates automatically, such as tag pages with one post.

For duplicate content, a canonical tag is usually the better choice, because it keeps the version you want in the index. Some SEOs disagree and noindex duplicates instead, especially filter pages that have no clean canonical version. Either way, never noindex a page you want to rank.

How to add a noindex tag

WordPress and Yoast

  1. With Yoast installed, open the post or page in the editor.
  2. In the Yoast SEO panel, open Advanced.
  3. Set “Allow search engines to show this content in search results?” to No.
  4. Update the post.

Other SEO plugins have the same switch, usually under Advanced or Robots. Leave Settings > Reading > Discourage search engines from indexing this site alone unless you mean it, because it applies to the whole site.

Shopify

Shopify’s admin has no per-page noindex switch. You have two options:

  1. Edit theme.liquid and add a condition inside <head>, for example {% if template contains 'search' %}<meta name="robots" content="noindex">{% endif %}.
  2. Set the seo.hidden metafield to 1 on a product, page or collection to hide it from search engines.

PDFs and other files

Set the header on the server. On Apache (with mod_headers enabled):

<FilesMatch "\.pdf$">
  Header set X-Robots-Tag "noindex"
</FilesMatch>

How to check if a page is noindexed

Check both the HTML and the HTTP header. If you only check the page source, you can miss a noindex sent in the header.

A checklist of six ways to confirm a noindex rule, from page source and headers to Search Console and Lighthouse.
A noindex sent only in the header never shows in the page source, so skipping the header check is how it gets missed.
  1. Page source. Press Ctrl+U (Cmd+Option+U on Mac) and search for noindex. Also check the rendered page in the DevTools Elements tab, because a script can add the tag after the page loads.
  2. HTTP header. Run curl -sI https://example.com/page | grep -i x-robots-tag. Or open DevTools > Network, reload, click the document request and read the Response Headers.
  3. URL Inspection in Search Console. It reports whether indexing is allowed. Under View crawled page, it shows the HTML Googlebot actually received.
  4. Page Indexing report. Under Search Console > Indexing > Pages, the “Excluded by ‘noindex’ tag” row lists every URL where Google found the rule.
  5. Lighthouse. In Chrome DevTools, run the SEO audit and look for “Page is blocked from indexing”. Older guides still point to Google’s Mobile-Friendly Test, but Google announced it would retire that tool on 1 December 2023.

Why does my noindexed page still appear in Google?

Google only drops the page after it recrawls it. Google says that can take months, and other search engines may read noindex differently. To speed things up:

  1. Confirm robots.txt doesn’t block the URL.
  2. Run URL Inspection and click Request indexing so Google recrawls the page.
  3. If it’s urgent, use Search Console > Indexing > Removals to hide the URL temporarily until the noindex takes effect.

Noindex best practices

  • Keep noindexed pages crawlable. Never add a robots.txt Disallow for them.
  • Don’t combine noindex with a canonical pointing elsewhere. The two signals conflict, so pick one.
  • Put the final value in the HTML your server sends. Google’s JavaScript SEO guide says that when Google finds noindex it may skip rendering, so a script that removes the tag later may not work.
  • Take noindex out of staging before launch. A staging noindex that goes live, or a ticked “Discourage search engines” box, is the classic human error.
  • Recheck after updates and restores. A plugin or theme update can change a default, a server rule can add X-Robots-Tag to every URL, and restoring an older version of the site can bring back a noindex you had removed.
  • Review the “Excluded by ‘noindex’ tag” list after every release, and request a recrawl for any page you change.

What to do next

Open the “Excluded by ‘noindex’ tag” row in your Page Indexing report today and confirm you meant to exclude every URL on it. Repeat this after every launch, migration or plugin update. If you run WordPress, Flowra‘s Index Coverage Monitor (Pro plan) checks whether each page is indexed and records when that changes, so you don’t have to check by hand.

Flowra Index Coverage page showing 10 of 12 pages indexed and two pages marked Not Indexed with Google's reason
Each page’s index status, coverage reason and last crawl date sit next to its clicks.

Frequently asked questions

Do noindexed pages pass PageRank?

A noindexed page is still crawled, and by default its links are followed. You will often read that a long-term noindex eventually behaves like nofollow. Treat that as unsettled: Google’s documentation doesn’t say so, and SEOs still dispute it.

What’s the difference between noindex and robots.txt?

Noindex stops a page appearing in search results, and robots.txt stops crawlers fetching it. If you block a page in robots.txt, Google can’t see its noindex rule. For noindex to work, the page must stay crawlable.

What’s the difference between noindex and a canonical tag?

Noindex removes a page from results entirely. A canonical tag tells Google which of several duplicate URLs to index, and keeps that one in results. For duplicate content, a canonical is usually the better choice.

What’s the difference between noindex and nofollow?

Noindex controls whether the page itself is indexed. Nofollow controls whether Google follows the links on the page. A nofollowed page can still appear in results.