How to set noindex
Meta robots tag (HTML)
<head>
<meta name="robots" content="noindex">
</head>Place inside <head>. The directive applies to the URL it's on. Works for any HTML page.
X-Robots-Tag (HTTP header)
X-Robots-Tag: noindexSet as an HTTP response header. The only way to noindex non-HTML resources (PDFs, images, raw JSON endpoints). Target specific bots: X-Robots-Tag: googlebot: noindex.
noindex vs robots.txt Disallow
The most-misunderstood distinction in technical SEO.
- — noindex blocks the page from appearing in search results.
- — robots.txt Disallow blocks crawlers from fetching the page. The URL can still appear in search results (without a description) if other sites link to it, because Google knows the URL exists even without crawling it.
- — Critical: if you noindex a page AND block it in robots.txt, Googlebot never sees the noindex directive and the page stays indexed indefinitely. Always keep noindex pages crawlable.
When to use noindex
- — Internal search-result pages.
/search?q=...URLs are infinite-cardinality duplicates of the homepage. - — Filter / facet URLs. Filtered product or category pages that don't add unique value beyond the canonical category.
- — Paginated archives beyond page 5. Deep pagination usually offers no unique value.
- — Admin / utility URLs. Login, account settings, cart, checkout — pages that exist for users but shouldn't rank.
- — Thank-you / confirmation pages. Post-form-submission destinations that don't serve search intent.
- — Test / staging environments. Use noindex on staging hosts to prevent accidental indexing.
When NOT to use noindex
- — Thin content you actually care about. Fix or delete the page; don't hide it.
- — Duplicate content. Use a canonical tag — it consolidates ranking signals into the canonical URL. noindex loses those signals entirely.
- — Pages with valuable inbound links. noindex doesn't inherit link equity to other pages; a canonical does.
Related terms
- — robots.txt — the access-control file (different from noindex).
- — Canonical tag — for duplicate-content consolidation (preferred over noindex).
- — Meta description — another meta tag in the page head.
How Seoxpert checks noindex
Every scan reports pages carrying noindex (meta or HTTP header) and flags the dangerous combinations: noindex on canonical URLs, noindex pages also blocked in robots.txt, conflicting meta-robots directives. Run a free website audit or browse the technical SEO issue library.