core

Noindex

A noindex tag is a directive placed in a page's HTML <head> or HTTP response header that instructs search engines not to include that page in their index. When Googlebot sees it, the page drops o...

Noindex

A noindex tag is a directive placed in a page’s HTML <head> or HTTP response header that instructs search engines not to include that page in their index. When Googlebot sees it, the page drops out of search results—or never appears in the first place.

Answer capsule: Noindex is an HTML meta tag or HTTP header value that tells search engines like Google to exclude a specific page from their search index. It does not block crawling—the bot can still visit the page, it just won’t store or display it in results. As of 2026, Google fully supports the noindex directive via both the <meta> tag and the X-Robots-Tag HTTP header.


What does noindex do in WordPress?

Noindex prevents a page from appearing in Google Search. The search engine can still crawl the URL—it needs to crawl it in order to read the noindex instruction—but it will not show that URL in results or pass ranking signals from it. We see this used frequently on client sites to keep internal utility pages, duplicate content, and staging previews out of Google’s database.

When should you use noindex?

Use noindex on pages that exist for functional reasons but have no business showing up in search results. Common cases on WordPress sites include:

  • Thank-you pages after form submissions or purchases
  • Cart and checkout pages in WooCommerce
  • Tag and date archive pages that duplicate post content
  • Login and account pages (e.g., /wp-login.php, /my-account/)
  • Staging or preview environments that mirror your live site
  • Thin or auto-generated pages with no unique value

We’ve managed 200+ client sites and the most common noindex mistake we see is accidentally leaving the “Discourage search engines” setting checked in WordPress after moving from staging to production—this applies noindex sitewide, which can tank a site’s rankings overnight.

How do you add noindex in WordPress?

The two most common methods:

Method 1: SEO plugin (recommended)
In Rank Math or Yoast SEO, open the page editor, scroll to the SEO meta box, and set the “robots” field to noindex. No code required. This outputs the following tag in your page’s <head>:

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

Method 2: WordPress core setting (sitewide)
Go to Settings → Reading and check “Discourage search engines from indexing this site.” Use this only on staging—never on a live site.

Per Google’s official documentation, Google respects the noindex directive as long as the page is not blocked by robots.txt. If a URL is blocked in robots.txt, Google cannot crawl it, which means it cannot read the noindex tag—a common misconfiguration that leaves pages in the index longer than intended.

One non-obvious detail: after you add a noindex tag, the page won’t disappear from Google immediately. Google must re-crawl the URL to read the new directive. High-traffic pages may take days; low-traffic pages can take weeks.


Noindex vs. nofollow vs. disallow

These three terms are often confused:

DirectiveWhere it goesWhat it does
noindex<meta> tag or HTTP headerExcludes the page from search index
nofollow<meta> tag or individual linkTells bots not to follow links on the page
disallowrobots.txtBlocks crawlers from accessing the URL entirely

Disallow is a blunt instrument—it stops crawling, but because bots never see the page, any existing noindex tags there also go unread.


  • Robots.txt — the file that controls crawler access at the server level
  • Canonical tag — an alternative for handling duplicate content without removing pages from the index
  • XML sitemap — the file that tells search engines which pages should be indexed
  • Crawl budget — how many pages Googlebot will crawl on a given site in a set period
  • Index coverage — the Search Console report that shows which pages are indexed and why others are excluded

Additional reading:
How to Set Up Rank Math SEO in WordPress · WooCommerce SEO: Which Pages to Noindex · WordPress Staging Best Practices