Robots Noindex: How to Keep a Page Out of Google With the Meta Robots Tag
A robots noindex rule tells Google not to show a page in its results. You add it as a meta robots tag in the page's head or as an X-Robots-Tag HTTP header, and you leave the page crawlable so Google can read it.
Noindex keeps a page out of Google's results. Google drops the page once it crawls it and sees the rule, even if other sites link to it.
Google only obeys noindex if it can crawl the page. A robots.txt block hides the rule and can leave the URL in results.
Use the X-Robots-Tag HTTP header for PDFs, images and other files that have no HTML head.
The Removals tool in Search Console hides a URL for about six months. Noindex, a 404 or a 410 is what keeps it out.
A noindex tag is the most powerful line of code most site owners never look at.
One line in a page's head decides whether Google can show it. I often find it in the wrong place: on service pages after a launch, or on whole blogs after a plugin update.
This guide covers the robots noindex rule end to end: what the meta robots tag is, which values Google supports, how noindex differs from robots.txt, and how to check any page.
What Is the Meta Robots Tag?
The meta robots tag is an HTML tag in a page's head that tells search engines how to index and display that page.
Here's the most common version:
<meta name="robots" content="noindex">
The name attribute says who the rule is for. robots means all crawlers. googlebot targets Google only.
The content attribute holds the rules, separated by commas.
Both attributes are case-insensitive.NOINDEX and noindex do the same thing.
The default is all. With no tag, Google can index the page and follow its links. Writing all explicitly changes nothing.
Conflicts resolve to the stricter rule. If two tags disagree, Google applies the more restrictive one.
Google also warns that some search engines might interpret noindex differently. If you care about Bing or others, check their documentation too.
That conflict point is the one that catches people out.
If your theme outputs one robots tag and your SEO plugin outputs another, the noindex wins. I've seen pages stay out of Google for months because of a duplicate tag nobody knew was there.
The Robots Values That Matter
Google supports more values than most guides list. Here are the ones it documents, and how often I actually use each:
Value
What it does in Google
How often I use it
noindex
Keeps the page out of search results
Often
nofollow
Tells Google not to follow the links on the page
Rarely
none
Same as noindex, nofollow
Rarely
nosnippet
Stops text snippets and video previews in results
Occasionally
max-snippet:[number]
Caps the text snippet at that many characters
Occasionally
max-image-preview:[setting]
Sets image preview size to none, standard or large
Occasionally
max-video-preview:[number]
Caps video previews at that many seconds
Rarely
noimageindex
Stops images on the page being indexed
Rarely
notranslate
Stops Google offering a translation in results
Rarely
unavailable_after:[date]
Stops showing the page after a set date
Rarely
indexifembedded
Lets content be indexed when embedded in another page via iframe, despite noindex
Rarely
Two values you'll still see in old templates do nothing in Google Search today: noarchive and nocache. Google's documentation lists both as no longer used.
For most sites, only one row in that table matters day to day.
noindex.
The snippet controls are useful for publishers. unavailable_after suits event and offer pages with a hard end date, and Google says it also slows crawling of the page after that date. Everything else is niche.
Noindex, Follow in Practice
noindex, follow is one of the most searched robots combinations, so it's worth being precise about it.
It means: don't index this page, but do follow its links.
Here's the thing:
Google's list of values includes nofollow but not follow. Following links is the default behaviour. Google says that without nofollow, it may use a page's links to discover other pages.
Writing follow does no harm. It just adds nothing.
Where noindex, follow makes sense is the page type it's usually written for. Think of tag archives, internal search results or thin filter pages. You don't want them in results, but they link to pages you do want found.
One caution from experience.
Don't make a noindexed page the main route to important content. In my experience, pages that stay noindexed for a long time get crawled less often, so their links aren't a reliable discovery path. Link to key pages from indexable pages and your sitemap as well.
When to Use Noindex (and When Not To)
Noindex is for pages people should be able to visit but searchers shouldn't land on.
Good candidates:
thank-you and order confirmation pages
internal site search results
thin tag, author or date archives
login, account and basket pages
staging and test copies of a site (better still, put these behind a password)
landing pages built only for paid campaigns
Bad candidates:
Duplicate versions of a page you want to rank. A canonical tag consolidates them into one URL. Noindex just removes one copy.
Pages that have moved. A 301 redirect sends visitors and signals to the new address.
Pages that no longer exist. Return a 404 or 410 instead.
Pages you want to save crawl on. Google still has to fetch a page to see its noindex, which I explain in my piece on crawl budget.
My test is simple. Should a visitor ever reach this page from Google? If no, noindex it. If yes, leave it indexable and fix whatever makes it weak.
How to Add a Noindex Tag
There are three ways to add the rule. Pick whichever your setup handles cleanly.
This works on any HTML page. It's the method I use on custom builds and static sites.
Through your CMS or SEO plugin
Most content management systems have a per-page setting. In WordPress, the popular SEO plugins add a per-post option to keep that post out of search results. Other platforms vary, so check yours before editing templates.
Google's guide to blocking indexing with noindex points CMS users to exactly this route. Your CMS may have a search engine settings page that writes the tag for you.
The WordPress "Discourage Search Engines From Indexing This Site" Setting
WordPress has a site-wide switch under Settings → Reading, labelled Search engine visibility.
Ticking "Discourage search engines from indexing this site" doesn't hide anything from visitors.
According to the WordPress Reading Settings documentation, since version 5.3 it adds a noindex,nofollow robots meta tag to every page. Older versions edited robots.txt instead. The documentation also notes that it's up to search engines to honour the request.
That setting is exactly right on a staging site. It's a disaster when it travels with the site at launch, which is why it's the first item I check on any WordPress site. My WordPress SEO checklist covers the other settings worth checking.
X-Robots-Tag for PDFs and Other Files
A PDF has no HTML head, so it can't carry a meta tag.
That's what the X-Robots-Tag HTTP header is for. It sends the same rules in the server's response instead of the page's code.
Google says the two methods have the same effect. The header simply works for non-HTML files too, such as PDFs, images and video files.
Here's what a response with the header looks like:
HTTP/1.1 200 OK
Content-Type: application/pdf
X-Robots-Tag: noindex
On an Apache server, Google's documentation shows a rule like this to noindex every PDF:
<Files ~ "\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</Files>
Other servers and CDNs have their own way to add response headers. Your developer or hosting panel will know the syntax.
I use the header in three situations:
old PDF brochures and price lists that outrank the pages they belong to
image or video files you don't want in Google Images
whole sections of a site where editing templates is harder than adding one server rule
Noindex vs Robots.txt Disallow
These two get mixed up constantly, and the mix-up has consequences.
Robots.txt controls crawling. It tells Googlebot which URLs not to request.
Noindex controls indexing. It tells Google not to show a page it has already requested.
The catch: Google can only read a noindex rule on a page it's allowed to crawl.
Google's documentation is direct about it. For noindex to work, the page must not be blocked by robots.txt. If the page is blocked, it can still appear in search results, for example when other pages link to it.
So blocking a page in robots.txt and adding noindex at the same time cancels out the noindex.
Robots.txt disallow
Noindex
Controls
Crawling
Indexing
Google requests the page?
No
Yes
Can the URL still appear in results?
Yes, if linked from elsewhere
No, once Google sees the rule
Best for
Crawl-heavy sections with no search value
Pages visitors use but searchers shouldn't land on
If Search Console is already showing blocked URLs in its index report, the fix has its own steps. I cover them in my guide to indexed though blocked by robots.txt.
How to Check a Page's Robots Directives
You can check any page in a minute. Do all four checks, because each one catches something the others miss.
1. Look at the source
Open the page, view the source (Ctrl+U in most browsers) and search for robots.
You're looking for any meta name="robots" or meta name="googlebot" tag. Count them. More than one is a warning sign.
Some sites add the tag with JavaScript, so it won't show in the raw source. Check the rendered HTML in your browser's developer tools as well.
2. Check the response headers
An X-Robots-Tag never appears in the page code. Check the headers with curl:
curl -I https://example.com/brochure.pdf
Look for an x-robots-tag line in the output. Your browser's Network tab shows the same headers.
3. Ask Google
In Search Console, run the URL through the URL Inspection tool and test the live URL.
The Indexing allowed? field tells you whether Google found a noindex rule in the tag or header. The page indexing report also lists noindexed URLs under their own reason, which is the fastest way to spot a template-wide problem.
On large sites, I check this per template rather than per page, which is a standard step in my technical SEO work.
4. Crawl the whole site
Spot checks only tell you about the pages you thought to check. Run a crawler across your site and export the indexability column, which lists every URL carrying a noindex in the tag or the header. Sort it by template or folder. A pattern you didn't expect, such as every product page in one category, usually points to a single setting or rule you can fix in one place.
Google drops the page when it next crawls it. Google warns that this can take months for pages it rarely visits.
When a page needs to disappear today, use two tools together.
Step 1: hide it now. The Removals tool in Search Console blocks a URL from Google's results. But Google's Removals tool help is clear that this is temporary, lasting about six months.
Step 2: remove it for good. Before that period ends, do one of these:
delete the page so it returns a 404 or 410
put it behind a login or password
add a noindex rule
Google's help page calls noindex the less secure of the three. That's fair. A noindexed page is still public to anyone who has the address.
And one thing not to do. Google's removals guidance says not to use robots.txt as the blocking mechanism here. You know why by now: a blocked page can't show Google its noindex.
Once the permanent fix is live, request a recrawl in the URL Inspection tool. Requesting it doesn't guarantee speed, but it puts the URL in the queue. My guide on how to get Google to index your website explains how those requests work.
Common Noindex Mistakes I Find in Audits
The same handful of problems turn up again and again:
Staging noindex shipped to live. The site-wide setting comes across with the database at launch. My website migration SEO checklist has a launch-day item for exactly this.
Noindex plus a robots.txt block. The block hides the noindex, so the URL can linger in results.
Noindexed pages in the sitemap. Two conflicting messages about the same URL.
Two robots tags on one page. A theme and a plugin both write one, and the stricter rule wins.
Noindex on paginated or category pages that carry rankings. Check traffic before you remove a page type from the index.
Forgotten X-Robots-Tag rules. A server rule added years ago quietly noindexes a whole folder, and nobody checks headers.
Most of these show up in a crawl that reports indexability. I run one at the start of every SEO audit.
Keep Your Index Clean on Purpose
Noindex is a precise tool. Used on purpose, it keeps thin and private pages out of Google while your important pages carry the site.
Start with one check today. Crawl your site, export every URL with a noindex tag or header, and confirm each one is there because someone chose it.
If that export throws up surprises, or you'd like someone to own indexing for you, it's a core part of my technical SEO services.
Frequently asked questions
What does noindex, follow mean?+–
It asks search engines not to index the page but to follow its links. For Google, following links is already the default, so noindex on its own has the same effect. Google's documentation lists nofollow as a value but not follow. Writing noindex, follow does no harm, it simply adds nothing Google needs.
How long does it take for a noindexed page to drop out of Google?+–
It drops after Google next crawls the page and sees the rule. Google says that can take months for pages it visits rarely. You can speed it up by requesting a recrawl through the URL Inspection tool, and for urgent cases you can hide the URL with the Removals tool while the noindex takes effect.
Should I put noindex pages in my XML sitemap?+–
No. A sitemap is a list of pages you want indexed, so listing a noindexed URL sends Google two opposite messages. The exception is short-term: if you have just added noindex to many pages and want Google to recrawl them sooner, some SEOs keep them in a sitemap briefly, then remove them once they drop out.
Does the WordPress discourage search engines setting remove my site from Google?+–
It asks search engines not to index the site by adding a noindex, nofollow robots meta tag to every page, according to the WordPress documentation. It does not block visitors or remove anything by itself. Pages already indexed only drop out once Google recrawls them and sees the tag, and the setting is a request search engines choose to honour.
Independent SEO consultant · 6+ years in SEO · 60+ client websites worked on
I'm an independent SEO consultant with 6+ years in SEO. I run audits, migrations and content programmes for businesses in Europe, the UK and the USA, and I build the automation behind my own research.