serkankaya.
Türkçe sürüm
Let’s work together ↗

What Is Noindex? When to Use It and When Not To

What is noindex and how do you add it with meta robots or X-Robots-Tag? The robots.txt difference, nofollow, the right use cases and common mistakes.

Here is the short answer to what is noindex: noindex is an indexing rule that asks search engines not to add a page or file to their index. On HTML pages it is set with the robots meta tag; on files such as PDFs it is sent with the X-Robots-Tag HTTP header. If Googlebot sees this rule when it crawls the page, it removes the page from search results.[1]

In this post I explain how noindex works, how to add it, how it differs from robots.txt and canonical, and on which pages it should and should not be used. Noindex is one of the core tools on the indexing side of technical SEO. I describe how I run these audits in my own projects on the SEO services page.

How does the noindex tag work?

The noindex tag is an instruction that Googlebot reads while crawling a page, and it keeps the page out of the index. The process has three steps. First, Googlebot discovers the URL through a link or a sitemap. Then it crawls the page and reads the meta tag in the HTML or the header in the HTTP response. Finally, if it sees the noindex rule, it does not index the page; if the page is already indexed, it removes it.[1]

The critical point is the second step. Noindex is not a crawling rule; it is an indexing rule. Googlebot has to be able to crawl the page to see the rule. Google’s documentation states this plainly: if the page is blocked by robots.txt, the crawler never sees the noindex rule, and the page can keep appearing in the index if other sites link to it.[1]

URL is discovered Googlebot crawls the page noindex is read Page leaves the index
Noindex only takes effect when the page is crawled; on a page that cannot be crawled, the rule stays invisible.

The effect of noindex is not instant. The rule is applied when Googlebot reads it on its next visit to the page. Google notes that, depending on a page’s importance, recrawling can take months.[1] That is why requesting a recrawl in Search Console’s URL Inspection tool helps in urgent cases.

How do you add noindex?

Noindex is added in two ways: by placing a robots meta tag in the <head> section of an HTML page, or by adding an X-Robots-Tag header to the server’s HTTP response. Both produce the same result. Which one you choose depends on the file type and your stack.

Short answer

How do you add noindex?

To add noindex, you place a robots meta tag in the head section of the HTML page or add an X-Robots-Tag header to the server response. Then you check that the page is not blocked by robots.txt and confirm in Search Console that the rule is being read.

  1. Decide which page or file type should stay out of the index.
  2. On an HTML page, add the robots meta tag to the head section.
  3. For files such as PDFs and images, add the X-Robots-Tag header on the server.
  4. Check that the page is not blocked by robots.txt.
  5. Confirm with Search Console URL Inspection that the rule is detected.

With the robots meta tag

The robots meta tag is an HTML tag placed in the page’s <head> section that tells bots about indexing rules. The value name="robots" addresses all search engines. If you only want to target Google, you can use name="googlebot".[2]

<!-- For all search engines -->
<meta name="robots" content="noindex">

<!-- For Google only -->
<meta name="googlebot" content="noindex">

If you use a content management system (CMS) such as WordPress, Wix or Blogger, you may not need to edit the HTML directly. Most of these systems offer a “hide from search engines” type of option in the page settings.[1] I cover the Shopify side in detail in the Shopify SEO post.

With the X-Robots-Tag HTTP header

X-Robots-Tag is a method that delivers the same rules through the HTTP response header instead of the HTML. It is the only way to set noindex on non-HTML files such as PDFs, images and videos. Because it works at the server level, a single rule can apply it to every file in a directory.[2]

HTTP/1.1 200 OK
Content-Type: application/pdf
X-Robots-Tag: noindex

On an Apache server, you can keep all PDF files out of the index by adding this rule to the .htaccess file:

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

In Nginx, the block location ~* \.pdf$ { add_header X-Robots-Tag "noindex"; } does the same job. On static hosting services such as Cloudflare Pages or Netlify, a _headers file is used.

What is the difference between noindex and robots.txt?

Robots.txt blocks crawling, while noindex blocks indexing. The two tools work at different stages and cannot replace each other. Robots.txt tells bots which URLs they should not visit. Google states clearly that robots.txt is not a way to hide a page from search results.[5]

robots.txt Disallow

  • Blocks crawling
  • The URL can appear in the index if it gets links
  • Managed site-wide in a single file
  • Suited to protecting crawl budget

noindex

  • Blocks indexing
  • The page leaves search results
  • Set per page or per file
  • Requires the page to be crawlable
Using both on the same URL means the noindex is never seen.

A common mistake is to block a page with robots.txt and also give it noindex. In that case Googlebot cannot crawl the page, cannot see the noindex, and the URL may remain in the index as a result without a description. The right order is: set noindex first, and once the page has left the index, block crawling with robots.txt if needed.

Writing a Noindex: line in robots.txt no longer works either. Google announced that it stopped supporting this unofficial rule as of September 1, 2019.[3] I explain how I manage AI crawlers with robots.txt in the AI crawlers and robots.txt post.

What is the difference between noindex and nofollow?

Noindex keeps a page out of the index, while nofollow stops the links on a page from being followed. Nofollow is a rule that asks search engines not to pass signals through links. In the robots meta tag it applies to every link on the page; with the rel="nofollow" attribute it applies to a single link.[2]

The two rules can be combined in one tag with a comma. According to Google’s technical specification, the value none is a shortcut for the pair noindex, nofollow.[2]

ValueIndexingLinksTypical use
noindexBlockedFollowedThank-you page, internal search
noindex, nofollowBlockedNot followedUntrusted pages with user content
noneBlockedNot followedSame as noindex, nofollow
nofollowAllowedNot followedRarely needed

In most cases noindex alone is enough. The links on a page outside the index can still help discovery of the site’s other pages. Unless there is a concrete reason to cut those links, I don’t add nofollow.

On which pages should noindex be used?

Noindex should be used on pages that must stay accessible to users but create no value in search results. These pages remain on the site, are reachable through links and keep working; they are just not in Google’s index. The question I ask when deciding is simple: is this page, on its own, a good answer to someone’s question on Google?

Typical candidates for noindex are:

  • Thank-you and confirmation pages: Pages shown after a form submission or purchase. If they stay in the index, they can also distort conversion measurement.
  • Internal search results: They can generate an endless number of low-quality URLs.
  • Account, cart and checkout pages: They carry personal content and have no search value.
  • Test and staging environments: Staging servers produce duplicate content. Password protection is safer than noindex here.
  • Ad landing page variants: Copies built only for campaign traffic that carry the same content as the organic page.
  • Thin tag and archive pages: Lists made of a few items that create no value on their own.

In e-commerce, filter and sort URLs need a separate decision. Some filter combinations carry real search demand and belong in the index. I cover which filters should be indexed in detail in the category page SEO post.

When should noindex not be used?

Noindex is not the right tool for consolidating duplicate pages, protecting crawl budget or temporarily hiding an important page. Each of these situations has a better solution. Used in the wrong place, noindex can quietly drop traffic-earning pages from the index.

Use canonical on duplicate pages. If the same content has more than one URL, the right tool is the rel="canonical" tag. Google recommends not using noindex to choose a canonical URL.[4] Noindex removes the page from the index entirely; canonical gathers the signals on the URL you prefer. I explain the difference in the canonical tag post.

Use robots.txt for crawl budget. Google still has to crawl a page to see its noindex. Marking thousands of parameter URLs with noindex does not reduce crawl load. For groups of URLs you don’t want crawled, robots.txt is the better fit.

Use 404, 410 or 301 for permanently removed pages. If the content no longer exists, return a 404 or 410 instead of keeping the page alive with noindex. If the content moved to another address, a 301 redirect passes the signals to the new URL.

Don’t give noindex to pages in your sitemap. A sitemap should only contain URLs you want indexed. A page that is listed in the sitemap and also carries noindex sends Google a contradictory signal. I explain how to build a proper sitemap in the XML sitemap post.

How do you check for noindex?

You check whether noindex sits on the right pages with Search Console, the browser and crawling tools. Search Console is the most reliable source, because it shows how Google actually sees the page.

  1. Open the Search Console page report

    In the page indexing report, review the "Excluded by noindex tag" row. If the list includes a URL that should be getting traffic, there is a problem.

  2. Run a URL inspection

    Enter the suspicious URL in the URL Inspection tool and run the live test. The tool shows whether Google detects a noindex on the page.

  3. Check the source code and headers

    Search the page source for robots in the browser. For HTTP headers, use the curl -I command in a terminal and look for the X-Robots-Tag line.

  4. Crawl the site

    Crawl the whole site with a tool such as Screaming Frog and filter the indexability column. Turn on rendering mode for tags added with JavaScript.

  5. Compare with the sitemap

    Compare the URL list in the sitemap with the URLs carrying noindex. The overlap should be empty.

I explain how I read Search Console reports in the how to use Google Search Console post. For indexing problems other than noindex, see the crawled but not indexed post.

Noindex added or removed with JavaScript needs care. Googlebot first fetches the page as raw HTML and runs JavaScript later, in a separate rendering step. That is why I recommend making the noindex decision in the initial HTML or the server header, which is the safest place from a JavaScript SEO point of view.

Noindex audit checklist0/8

What happens after noindex is removed?

When noindex is removed, the page becomes a candidate for indexing again once Googlebot recrawls it. There is no fixed timeline; it depends on how often the page is crawled. Pages that are updated often and get good internal links come back faster.

To speed things up, first confirm in the source code and HTTP headers that the rule is really gone. Then open the URL Inspection tool in Search Console and request indexing. If many URLs are involved, submitting an up-to-date sitemap and adding internal links to these pages is more effective.

A page returning to the index does not mean it will immediately regain its old rankings. Google evaluates the page again. That is why the safest approach is not to use noindex as a temporary hiding tool on critical pages.

Summary

Noindex is the clearest way to keep a page out of the index, and it is set with the robots meta tag or the X-Robots-Tag header. For it to work, the page has to be crawlable, which means it must not be blocked by robots.txt. It is the right tool for thank-you, account, internal search and staging pages; it is not the tool for duplicate pages, crawl budget or removed content.

As a next step, open the “Excluded by noindex tag” list in Search Console and ask “should this page be in the index?” for every URL. If you find an unexpected page, trace whether the rule comes from the template, a plugin or a server header.

Key terms

X-Robots-Tag
X-Robots-Tag is a header that delivers the indexing rules of the robots meta tag through the HTTP response instead of the HTML. It is the way to set noindex on non-HTML files such as PDFs, images and videos, and server configuration can apply it to many URLs at once.
Robots meta tag
The robots meta tag is a tag placed in the head section of an HTML page that tells search engines whether to index the page, whether to follow its links and how to show its snippet. It can address all bots or a specific bot such as googlebot.
Nofollow
Nofollow is a rule that asks search engines not to follow the links on a page and not to pass signals through them. In the robots meta tag it applies to every link on the page; with the rel="nofollow" attribute it applies to a single link.

Frequently asked questions

What is noindex?

Noindex is an indexing rule that asks search engines not to add a page or file to their index. On HTML pages it is set with the robots meta tag; on files such as PDFs it is sent with the X-Robots-Tag HTTP header. When Google sees the rule, it drops the page from search results.

What is the difference between noindex and robots.txt?

Robots.txt blocks crawling, while noindex blocks indexing. A page blocked by robots.txt can still appear in the index if other sites link to it. Noindex only works if Googlebot can crawl the page, so the two methods should not be combined on the same URL.

Can noindex and nofollow be used together?

Yes, both rules can be set in one tag by writing content="noindex, nofollow". Google also accepts the value none as a shortcut for the pair. In most cases, however, noindex alone is enough; blocking the page's links from being followed is rarely necessary.

How long does it take for a page to return to the index after removing noindex?

There is no fixed time, because the page's return depends on Googlebot recrawling it. You can speed things up by requesting indexing in Search Console's URL Inspection tool. Google notes that recrawling less visited pages can take months.

Can I put noindex in robots.txt?

No. Google has not supported the noindex rule in robots.txt since September 1, 2019. To keep a page out of the index, use the robots meta tag or the X-Robots-Tag header.

Sources

  1. Google Search Central: noindex ile dizine eklemeyi engelleme
  2. Google Search Central: Robots meta etiketi ve X-Robots-Tag teknik özellikleri
  3. Google Search Central Blog: A note on unsupported rules in robots.txt (2019)
  4. Google Search Central: Yinelenen URL'leri birleştirme (canonical)
  5. Google Search Central: robots.txt'ye giriş