A noindex tag is a rule that tells Google and other search engines not to show a page in their search results.
Add <meta name="robots" content="noindex"> to the page's <head> (or send an X-Robots-Tag: noindex HTTP header), and leave the page crawlable. Google has to fetch the page to see the rule, so never block a noindexed page in robots.txt.
Key takeaways
- Noindex controls indexing, not crawling. Google keeps visiting noindexed pages.
- It only works if Googlebot can crawl the page. A robots.txt Disallow hides the tag from Google.
- Use the meta tag for HTML pages and the X-Robots-Tag header for PDFs and other files.
- For a fast, temporary hide, use the Search Console Removals tool. For a permanent fix, use noindex, a 404/410 or a password.
- An accidental noindex is one of the most common reasons a whole site vanishes from Google. Check it first.
What does noindex mean?

Noindex means "you can crawl this page, but don't list it in search results". Google's robots meta tag specification defines it as: do not show this page, media or resource in search results.
Three points people often miss:
- It is a directive, not a hint. If Google sees it, the page drops out of results. A canonical tag, by contrast, is a signal Google can ignore.
- It is per URL. Noindexing one page does nothing to the pages it links to.
- It needs a recrawl. Nothing happens until Googlebot fetches the page again and sees the rule. Google's own noindex documentation warns this can take months for rarely crawled pages.
Noindex tag code: meta robots vs X-Robots-Tag
There are two ways to deliver the same rule. Both are documented in Google's guide to blocking indexing with noindex.
1. The robots meta tag (HTML pages)
Put this inside the <head> of the page:
<meta name="robots" content="noindex">
To target Google only, swap robots for googlebot:
<meta name="googlebot" content="noindex">
The rules are case-insensitive, so NOINDEX works too. If a page carries conflicting rules (say, index in one tag and noindex in another), Google applies the more restrictive one.
2. The X-Robots-Tag header (PDFs, images and other files)
A PDF has no <head>, so you send the rule in the HTTP response instead:
X-Robots-Tag: noindex
Apache (.htaccess or httpd.conf), noindexing every PDF:
<Files ~ "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</Files>
Nginx:
location ~* \.pdf$ {
add_header X-Robots-Tag "noindex, nofollow";
}
Both examples follow Google's robots meta tag and X-Robots-Tag specification. So yes, you can noindex a PDF, and the header is the only way to do it.
Where to put the noindex tag (and where not to)
- In the
<head>of the server-rendered HTML. Not in the<body>, not inside a plugin's footer script. - Not in robots.txt. Google stopped supporting
noindex:lines in robots.txt on 1 September 2019 (Google's announcement). If you still have one, it does nothing. - Not added or removed with JavaScript. Google says that when it finds noindex it may skip rendering and JavaScript, so using JS to change or remove a noindex "may not work as expected" (reported by Search Engine Land). If you want the page indexed, keep noindex out of the original HTML.
What do noindex, nofollow and noindex, follow mean?
These are combinations of two separate rules:
| Value | What it tells Google |
|---|---|
noindex |
Don't show this page in results. Links on it may still be followed. |
noindex, follow |
Same as above, said explicitly. follow is the default anyway. |
noindex, nofollow (or none) |
Don't show this page and don't follow its links. |
nofollow |
Index the page, but don't follow its links. |
Two clarifications:
- Long-term
noindex, followbehaves likenoindex, nofollow. In December 2017, Google's John Mueller said that a page noindexed for a long time is eventually dropped and its links stop being followed (Search Engine Roundtable). Don't rely on a noindexed page to pass link value for ever. - Meta
nofollowis not the same asrel="nofollow". The meta version covers every link on the page. The link attribute covers one link. I cover the link attribute in my guide to nofollow links.
Noindex vs disallow vs canonical vs 404 vs the Removals tool
This is where most mistakes happen. Each tool solves a different problem.
| Method | Stops crawling? | Removes from Google's index? | How fast? | Permanent? | Use it for |
|---|---|---|---|---|---|
| Noindex tag | No. Page must stay crawlable | Yes, after the next crawl | Days to months, depending on crawl frequency | Yes, while the tag stays | Pages users need but searchers don't |
| robots.txt Disallow | Yes | No. A blocked URL can still be indexed (without content) if linked | Not applicable | Yes, while the rule stays | Saving crawl on endless or private-ish URL spaces |
| Canonical tag | No | Consolidates duplicates into the chosen URL. A hint, not a command | Varies | Only if Google agrees | Duplicate or near-duplicate pages |
| 404 / 410 status | No (Google rechecks occasionally) | Yes, after recrawl | On recrawl | Yes | Content that is gone for good |
| Search Console Removals tool | No | Hides the URL from results; it is not a fix on its own | The quickest option | No. About six months | Emergencies, while you apply a permanent fix |
The big warning: never combine noindex with a robots.txt Disallow on the same URL. Google says plainly that if robots.txt blocks the page, "the crawler will never see the noindex rule", and the page can stay in results if other sites link to it (Google). Remove the Disallow, let Google crawl and see the noindex, then decide whether to block it again. My robots.txt guide covers Disallow rules in detail, and my canonical tags guide covers duplicates.
When to use noindex (and when not to)

Use noindex on:
- Thank-you, order-confirmation and account pages.
- Internal site search results pages.
- Thin tag, author or date archives that add nothing a searcher would want.
- Staging or test copies that must stay public (password-protect them if you can).
- Landing pages built only for paid campaigns or email, often near-duplicates of real pages.
- Downloadable files you don't want ranking, via X-Robots-Tag.
Don't use noindex on:
- Pages you want traffic from. It sounds obvious, but it is the most common error I find in audits.
- Duplicate URLs where one version should rank. Use a canonical tag or a 301 redirect instead, so signals consolidate.
- Pages you want to stop Google crawling. Noindex won't do that; it only stops indexing.
- Private or sensitive content. Google itself calls noindex less secure than a password, because the page still loads for anyone with the URL.
Should I noindex tag and category pages?
It depends on whether the archive is useful. A category page with an intro, a clear theme and twenty strong posts can rank and deserves indexing. An empty tag page, or one with a single post, is thin, so noindex it or delete the tag.
Here is the catch from my own site. In the October 2026 audit of algoblueprints.com, our /category/* archives were noindexed and empty, yet Search Console's crawl stats showed Googlebot had fetched them about 63 times in roughly three months. /category/updates/ alone was fetched 38 times, more than every article except one. The noindex was working: the Page indexing report listed /category/updates/ as excluded by noindex, and the other archives were on their way out of the index. But the archives sat in the main menu, so every page linked to them and Google kept coming back.
The lesson: noindex removes a page from results; it doesn't make Google lose interest. If a noindexed page is linked from every page in your menu, you are spending crawl on it. Remove those links first. My crawl budget guide explains why that matters more on small, low-authority sites.
How to noindex a page in WordPress
With Yoast SEO (single page or post)
- Open the post or page in the editor.
- Open the Yoast SEO sidebar or the meta box below the editor.
- Go to the Advanced tab.
- Under "Allow search engines to show this content in search results?", choose No.
- Update the post.
By default, only editors and administrators see the Advanced tab (Yoast help).
With Yoast SEO (whole content types or taxonomies)
Go to Yoast SEO > Settings, open the content type (Posts, Pages) or taxonomy (Categories, Tags), turn off the toggle that shows it in search results, and save. Author and date archives sit under the Advanced section.
Without a plugin
Add the meta tag conditionally in your child theme's functions.php, for example on internal search results:
add_action( 'wp_head', function () {
if ( is_search() ) {
echo '<meta name="robots" content="noindex">' . "\n";
}
} );
If you already run an SEO plugin, use its settings instead. Two plugins writing robots tags is how sites end up with conflicting rules.
The site-wide switch you must not forget
Settings > Reading > "Discourage search engines from indexing this site" adds a noindex to every page of the site. It is meant for development. I have seen it left ticked after a launch more than once, and it is one of the first things I check when a site isn't showing on Google.
How to remove a noindex tag in WordPress
Reverse whichever setting added it: untick the Reading setting, set the Yoast question back to Yes, or re-enable the content type in Yoast settings. Clear any page cache, view the source to confirm the tag is gone, then use Request indexing in URL Inspection.
How to noindex a page in Shopify
Shopify documents two routes. Test either on a duplicate theme first.
1. Edit theme.liquid. In Online Store > Themes > Edit code, open layout/theme.liquid and add a condition inside <head>. Shopify's help page gives this pattern:
{% if handle contains 'page-handle-you-want-to-exclude' %}
<meta name="robots" content="noindex">
{% endif %}
contains is a partial match, so a short handle like sale would also catch summer-sale-shoes. Use the full, unique handle.
2. The seo.hidden metafield. Setting this metafield to 1 on a product, page or blog post adds noindex,nofollow and removes the item from the sitemap (Shopify's guide). Many SEO apps use this same metafield behind the scenes.
How to check a noindex tag

- View source. Open the page, press Ctrl+U (Cmd+Option+U on Mac) and search for
noindex. Check the raw source, not only the browser inspector. - Check the headers. For PDFs and files, look at the response headers in DevTools (Network tab) or run
curl -I https://example.com/file.pdfand look forX-Robots-Tag. - URL Inspection in Search Console. It shows whether indexing is allowed and what HTML Googlebot actually received.
- Page indexing report. Pages Google skipped because of the rule appear under "Excluded by 'noindex' tag". Review that list regularly; anything you want ranking should not be on it. Google explains each status in its Page indexing report help.
- Crawl tools. Screaming Frog, Sitebulb and similar tools list every noindexed URL across the site, so you can spot a template-level mistake in one pass.
If a page is not indexed and has no noindex, the problem is elsewhere. Start with my guides to Crawled – currently not indexed and Discovered – currently not indexed.
How to remove a page from Google search results
Pick the method by how fast you need it gone and whether the page should exist.
- Urgent (leaked data, wrong prices, legal issues): submit the URL in the Search Console Removals tool. Google says a successful request lasts about six months and does not stop crawling, so apply a permanent fix at the same time.
- The page should exist but not rank: add a noindex tag, keep it crawlable, then request a recrawl in URL Inspection.
- The page is gone for good: return a 404 or 410. If a better page replaces it, use a 301 redirect so users and links land somewhere useful.
- Content that must stay private: put it behind a login or password.
If you hide something with the Removals tool and do nothing else, it can come back when the six months run out.
Is noindex still relevant?
Yes. The meta robots tag and X-Robots-Tag are the methods Google currently documents for keeping a crawlable page out of results. What has gone is noindex in robots.txt. If anything, noindex matters more on large sites with faceted navigation, where thin URL variations can outnumber real pages.
FAQ
How long does it take for a noindex tag to work?
It works the next time Google crawls the page. For popular pages that can be days. For pages Google rarely visits it can be weeks or months. Requesting indexing in URL Inspection usually speeds it up.
Does a noindex tag hurt the rest of my site?
No. Noindex applies to that URL only. It does not lower the rankings of other pages. The risk is putting it on the wrong template and noindexing pages you need.
Can I use noindex and canonical on the same page?
Avoid it. A canonical says "this page is a copy of that one", while noindex says "drop this page". The signals conflict. Pick one: canonical for duplicates, noindex for pages that shouldn't be in results at all.
Will a noindexed page still appear in my XML sitemap?
It can, if your sitemap plugin doesn't exclude it. Take it out. A sitemap should list only pages you want indexed, and listing noindexed URLs sends Google mixed signals.
Do other search engines respect noindex?
Bing and other major engines support the robots meta tag. The googlebot variant applies only to Google, so use robots if you want every engine to honour it.
Sources
- Google Search Central: Block Search indexing with noindex
- Google Search Central: Robots meta tag, data-nosnippet and X-Robots-Tag specifications
- Google Search Console Help: Removals and SafeSearch reports tool
- Google Search Console Help: Page indexing report
- Google Search Central Blog: A note on unsupported rules in robots.txt (July 2019)
- Search Engine Roundtable: Google: Long term noindex will lead to nofollow on links (December 2017)
- Search Engine Land: Google says don't use JavaScript to generate a noindex tag in the original page code
- Yoast: How to noindex URLs
- Shopify Help Center: Hiding a page from search engines
- Shopify Blog: How to noindex a Shopify page
Connect with Akif on LinkedIn, Instagram and Facebook.
Driven by advanced SEO expertise, deep marketing analytics, high-impact content strategy
With 2+ years of hands-on SEO experience, I specialize in holistic search strategies that don’t just rank—they drive real, measurable business growth. I’ve worked across industries including healthcare, hospitality, legal, e-commerce, and professional services, helping brands dominate their target markets. My approach bridges the gap between raw data and creative execution. Every strategy I build is rooted in rigorous market analysis, structured SEO frameworks, and tailored content ecosystems—no templates, no shortcuts. Whether you’re a single-location brand or scaling across multiple cities, I create data-driven marketing systems designed to compound results and grow with you.
Not Sure Which Pages Should Be Indexed?
Get an indexing audit that finds pages wrongly blocked and pages that should be kept out.
Book a Free SEO Audit →