A noindex tag is a robots meta tag or X-Robots-Tag HTTP header that lets search engines crawl a page but tells them not to index it or show it in results. When Googlebot crawls the page and reads the rule, Google drops the page entirely from Search, even if other websites link to it. The page has to stay crawlable for the rule to work. A robots.txt block stops Googlebot from fetching the page, so it never sees the tag.
What the noindex tag does
Noindex acts at the indexing stage, so it only works if you understand where crawling ends and indexing begins. During crawling, Googlebot fetches a URL. With indexing, Google stores that page and can show it in results. Google's own guidance splits the two jobs. Use robots.txt to stop crawling and use noindex to stop indexing.

The tag takes effect on the next crawl. Google has to fetch the page to read meta tags and headers. If a noindexed page still shows in results, Googlebot probably hasn't returned since you added the rule. Depending on how important the page is, a revisit can take months. You can ask for a faster recrawl with the URL Inspection tool in Google Search Console.
Noindex in robots.txt doesn't work in Google. Google announced on July 2, 2019, that it would retire unsupported rules, including noindex, nofollow, and crawl-delay in robots.txt, on September 1, 2019. The alternatives it listed were the robots meta tag or header, 404 and 410 status codes, password protection, a robots.txt Disallow, and the Search Console removal tool.
How to add a noindex meta tag to a page
Place this line in the <head> of any HTML page you want out of search results:
<meta name="robots" content="noindex">The robots name applies the rule to every crawler that supports it. To block only Google's web crawlers, use the Googlebot token:
<meta name="googlebot" content="noindex">Google respects the tag in the <body> too, but the <head> is the documented place and the one other tools expect. Don't count on JavaScript to remove the tag later. When Google finds noindex, it may skip rendering and JavaScript execution. A script that changes or removes the tag after load may not work as you expect.
Most CMSs and website builders expose the setting without code. Here is where each one keeps it and what it is called:
| Platform | Setting name | Where to find it |
|---|---|---|
| WordPress core | Discourage search engines from indexing this site | Settings > Reading. Covers the whole website. Since version 5.3 it outputs a noindex,nofollow meta tag |
| Yoast SEO | Allow search engines to show this content in search results? | Yoast sidebar or meta box, Advanced tab, select No |
| Rank Math | Robots Meta | Post editor, Rank Math icon, Advanced tab (needs Advanced Mode). Type-level defaults sit in Titles & Meta |
| Shopify | SEO Hidden metafield (seo.hidden) | Settings > Metafields and metaobjects, add the definition, then set the value to 1 on the page, post, or product |
| Wix | Let search engines index this page | Pages & Menu, More Actions, SEO basics, turn the toggle off |
| Squarespace | Hide page from search results | Pages panel, gear icon, SEO tab |
| Webflow | Sitemap indexing toggle | Page settings. Adds <meta content="noindex" name="robots"> and removes the page from the sitemap |
How to use the X-Robots-Tag header for PDFs and other files
PDFs, images, and video files have no <head>, so Google says to use the X-Robots-Tag response header for them. Any rule that works in a robots meta tag also works in the header. The header name, user agent, and values are not case sensitive.
On Apache, Google's PDF example goes in the root .htaccess file or httpd.conf:
<FilesMatch "(?i)\.pdf$">
Header set X-Robots-Tag "noindex, nofollow"
</FilesMatch>The Header directive comes from Apache's mod_headers module. That module must be loaded, and it works in server config, virtual host, directory, and .htaccess contexts. The file-matching block limits the header to PDF files. Before deploying, confirm that the header appears on a target PDF and is absent from an HTML page that should stay indexed.
On NGINX, add the X-Robots-Tag directive to the location that already serves the file. These snippets show common URL matches. Keep your existing file or proxy handler and scope the header at the CDN if changing the handler would affect other URLs:
location ~ \.pdf$ { add_header X-Robots-Tag "noindex, nofollow"; }For images across the whole website, Google gives this NGINX rule:
location ~ \.(png|jpe?g|gif)$ { add_header X-Robots-Tag "noindex"; }For a single file:
location = /secrets/unicorn.pdf { add_header X-Robots-Tag "noindex, nofollow"; }Before you deploy these location rules, preserve the security and cache headers they currently inherit. By default, a local add_header stops inheriting the parent level's add_header directives. After the change, make a GET request to a matching URL and an unaffected URL. Verify the expected file, status and response headers. See NGINX's header module reference.
A correctly configured file returns a response like Google's sample:
HTTP/1.1 200 OK
(...)
X-Robots-Tag: noindex
(...)The header value can be noindex or none. The image rule has one extra requirement. Google must be allowed to crawl the image URLs to read the header.
How to combine noindex with other directives
Google lets you stack rules with commas or with several separate tags. Both of these produce the same result:
<meta name="robots" content="noindex, nofollow"><meta name="robots" content="noindex">
<meta name="robots" content="nofollow">The header works the same way. You can send several X-Robots-Tag headers or one comma-separated list. The value none equals noindex, nofollow.
When a generic tag and a crawler-specific tag both appear, Google adds up the negative rules. A page with <meta name="robots" content="nofollow"> and <meta name="googlebot" content="noindex"> is read as noindex, nofollow for Googlebot. When rules conflict, the more restrictive one applies. Google's example is a page with both max-snippet:50 and nosnippet, where nosnippet wins.
What not to combine with noindex
The two pairings people most often get wrong involve nofollow and canonical tags.
Noindex and nofollow
Noindex controls whether the page appears in results, while Nofollow controls whether crawlers follow the links on it. So noindex, follow keeps the page out of results while letting Google follow its links, and noindex, nofollow blocks both.
Over the long run, the two combinations may end up behaving alike. In a Webmaster Central office-hours hangout, John Mueller said Google eventually stops following links on pages that stay noindexed for a long time, because it removes them completely. Asked how long that takes, he answered that it depends. Don't count on a permanently noindexed page to pass crawlers to deeper content. Link to that content from indexable pages too.
Noindex and canonical tags
A canonical tag consolidates duplicates, and noindex excludes a page. Use rel="canonical" when several URLs carry the same content and you want one version shown. Use noindex when you want the page out of Search entirely.
Google doesn't recommend noindex for steering canonical selection within one website, because it blocks the page from Search completely. The canonical annotation is the preferred fix for duplicates. Asked whether pages carrying rel="canonical" should also carry noindex, Google answered no. The pages would then not be equivalent for indexing. Pick one signal per page, and check that the URL your canonical points to has no noindex tag.
Pick the right way to keep a URL out of search
Each method controls a different stage, so the right choice depends on whether you want the page hidden, consolidated, gone, or private. Check whether robots.txt prevents Googlebot from reading noindex before combining the controls below:
| Method | What it does | When to use it |
|---|---|---|
| Noindex meta tag | Lets Google crawl the page, then drops it from results after the next crawl | HTML pages visitors can still reach but that shouldn't rank |
| X-Robots-Tag header | Same effect as the meta tag, set in the HTTP response | PDFs, images, video, and other non-HTML files |
| robots.txt disallow | Stops crawling, but Google can still index a disallowed URL linked from elsewhere | Crawl control for low-value URL patterns, not hiding pages |
| rel="canonical" | Strong hint about which duplicate to show, and Google may pick another | Duplicate or near-duplicate versions of one page |
| 404 or 410 status | Removes a previously indexed URL. Google treats both the same for indexing, and 410 tends to reduce crawling | Content you have deleted for good |
| Password protection | Blocks crawlers and unauthorized users, and Google eventually removes the content from results | Private, confidential, or pre-launch content |
| Removals tool | Hides a URL from Google results for about six months, without stopping crawling | Urgent hiding while a permanent fix goes live |
Pages to noindex and pages to keep indexed
Noindex fits pages that people can reach but that add nothing as a search result. These are the usual candidates:

- Thin pages: Tag archives, near-empty profile pages, and similar URLs with little unique content.
- Internal search results: Yoast SEO sets
noindex, followby default on WordPress internal search pages. Google's URL guidance also lists search-result URLs as robots.txt candidates when crawling is the problem. - Thank-you pages: Confirmation pages after a form or purchase. The general noindex guidance applies.
- Staging environments: Password protection is the stronger choice. In a 2023 office-hours session, Google called a password-locked staging website common and recommended.
- Expired campaign pages: Landing pages that ended but still have to resolve for old links. If the page is gone for good, a 404 or 410 is cleaner.
- Filtered and sorted pages: If faceted URLs don't need to rank, Google suggests blocking their crawl with robots.txt to save server resources. For filter and sort URLs, its ecommerce guidance accepts either noindex or robots.txt.
How to check whether a page has a noindex tag
Run these checks before you request indexing. A noindex rule can sit in the HTML, the header, or a cached copy, and each check covers a different place.
- View the source: Open the page source in your browser and search for
noindex. Check for bothrobotsandgooglebottags. - Check the headers: Run
curl -sS -D - -o /dev/null https://example.com/file.pdfagainst the URL and look for anX-Robots-Tagline. This is the only way to catch header rules on files and on pages where the HTML looks clean. - Inspect the URL in Search Console: In the URL Inspection tool, "Indexing allowed? No" means Google found a noindex tag or header. A URL blocked by robots.txt always shows "Yes", because Google can't read the rule. Use Test live URL to check the current version, and look at the HTML Googlebot received.
- Review the Page indexing report: The Page indexing report lists noindexed URLs under the "URL marked 'noindex'" reason. If those URLs are meant to be hidden, no action is needed. If any should rank, remove the rule.
How to remove a noindex tag and get the page reindexed
Removing the rule is quick. Getting Google to notice is the slow part. Here’s how to do it:
- Remove the tag or header: Delete the
metatag, turn off the CMS setting, or remove the server rule. Then clear any CDN or caching plugin. Google's Martin Splitt warned that a CDN may still serve the old noindex after you remove it from the website. - Test the live URL: Run Test live URL in URL Inspection and confirm noindex is no longer detected. You can't request indexing while the live test calls the page non-indexable.
- Request indexing: Click Request indexing for your most important URLs. Google sets a daily quota for individual URLs, and repeat requests for the same URL won't speed up crawling.
- Update the sitemap: For many URLs, submit a sitemap that includes the restored pages. Google uses
<lastmod>only when the value is consistently and verifiably accurate, so set it to the real change date.
Expect days to weeks, with no guarantee. Google says crawling can take anywhere from a few days to a few weeks. Indexing typically takes a day or so but can stretch to a week or two. Submitting a request doesn't guarantee the page enters the index. Google also doesn't hold a past noindex against a page.
Common noindex mistakes
These are common mistakes people make with noindex:
- Noindex shipped from staging: Developers often noindex a staging build and forget to remove it at launch. When iFly.com placed noindex on all its interior pages by mistake, it lost half its traffic and significant revenue. The WordPress "Discourage search engines" checkbox is a common source, because one setting covers every page.
- Noindexed canonical targets: The canonical points to a URL that carries noindex.
- Noindexed URLs in sitemaps: You submit URLs in a sitemap while blocking their indexing with noindex. Search Console flags these, and Rank Math documents the fix for the "Submitted URL marked 'noindex'" warning. Keep sitemaps to indexable URLs only.
- robots.txt conflicts: Adding a
Disallowto "speed up" removal hides the noindex from Googlebot and can keep the URL in results. - Stale cached headers: A caching plugin or CDN keeps serving an old noindex header to Googlebot while you see a clean page.
Recovery speed varies with crawl frequency. In one Moz incident, noindex tags meant for search and filtered pages reached production. An engineer removed them within five minutes, and traffic returned to previous levels about 2–3 days later. Some deeper pages took five days or longer.
In a separate Moz de-indexing incident, search traffic fell by about 33.2% at the worst point. Visibility returned to baseline after six weeks, and all pages were re-indexed after about eight to nine weeks. A noindex check belongs in every release checklist, before the deploy goes live.
