What does the noindex code look like?
The meta tag goes in the head of the page. This version speaks to every search engine that supports the rule [1].
<head>
<meta name="robots" content="noindex">
</head>
To address only Google's web crawlers, change the name to googlebot [1]. You can join noindex with other rules using commas, for example noindex, nofollow [1][2].
For a PDF or an image there is no head to edit. Send the rule in the HTTP response instead [1].
HTTP/1.1 200 OK
X-Robots-Tag: noindex
If your site runs on a CMS such as Wix, WordPress or Blogger, you might not be able to edit the HTML. The CMS may have a search engine settings page for this instead [1].
Should I block the page in robots.txt as well as using noindex?
No, that cancels the noindex. Google has to crawl the page to see the tag or header. If robots.txt blocks the page, the crawler never sees the rule, and the page can still appear in results, for example when other pages link to it [1]. The rule also cannot be written inside robots.txt, which Google does not support [1].
| Method | What it does |
|---|---|
| noindex meta tag or header | The page can be crawled, then Google drops it from results [1] |
| Disallow in robots.txt | Asks crawlers not to visit the URL. The page can still show up in search [1] |
Settings like these can be read and followed only if crawlers are allowed to access the page [2]. Check your robots.txt file before you add noindex to a page.
Why is my noindex page still showing in Google?
Most likely Google has not crawled the page since you added the rule. Depending on how important the page is, it can take months for Googlebot to come back [1]. You can ask for a recrawl with the URL Inspection tool in Google Search Console [1]. The same tool shows the HTML Googlebot received, so you can confirm the tag is visible [1]. The Page Indexing report lists pages where Googlebot found a noindex rule [1].
The other usual cause is a robots.txt block, covered above. If you need a page gone quickly, Google points to its removals documentation [1].
Which pages on a small business site should carry noindex?
A thank-you page after an enquiry form
Say your Singapore renovation firm shows /thank-you after someone sends a quote request. Nobody should land there from a search, so add the noindex meta tag to that page and leave it out of your XML sitemap. Keep the page open to crawlers so the tag can be read.
Noindex is for pages that should not appear in search at all, such as thank-you pages and test pages. It is not access control: the page stays open to visitors and crawlers. For two URLs that show the same content, see canonical tag.
Questions people ask
Does noindex also stop Google crawling the page?
No. Google has to crawl the page to read the rule [1]. Noindex removes a page from search results. It does not hide the page from visitors or crawlers.
Can I put noindex in robots.txt?
Not for Google. Specifying the noindex rule in the robots.txt file is not supported by Google [1]. Use the meta tag or the X-Robots-Tag header.
Will noindex work on Bing and other search engines?
Some search engines might interpret the rule differently, so your page might still appear in their results [1].
Pages that link here
Canonical tag, Crawling, HTTP status codes, Indexing, Meta description, robots.txt, Title tag
Blog posts that use this term
See also
- robots.txt A robots.txt file is a plain text file at the root of your site that tells search crawlers which URLs they may visit.
- Indexing Indexing is when Google analyses a page it has crawled and stores the result in its index, so the page can be shown for matching searches.
- Crawling Crawling is when Google's automated programs find your web pages and download their text, images and videos so they can be processed for search.
- Canonical tag A canonical tag is a line of HTML that tells search engines which URL is the main version when several URLs show the same page.
- Google Search Console Google Search Console is a free tool from Google that shows how your website performs in Google Search and which pages Google has trouble reading.
- XML sitemap An XML sitemap is a file on your website that lists the pages you want search engines to find, usually at /sitemap.xml.
References
- Block Search Indexing with noindex, Google Search Central. Read 27/11/2026.
Specifying the noindex rule in the robots.txt file is not supported by Google.
- Robots meta tag, data-nosnippet, and X-Robots-Tag specifications, Google Search Central. Read 27/11/2026.
Keep in mind that these settings can be read and followed only if crawlers are allowed to access the pages that include these settings.