Indexability: noindex, X-Robots-Tag and canonical URLs
How noindex and canonical tags work, how they interact with robots.txt, and the mistakes that quietly remove pages from search.
Reviewed against official sources on · 5 min read
Crawling is not indexing
robots.txt controls whether a page may be fetched. Indexing directives control whether a fetched page may be kept in a search index. They are separate: a page can be crawlable but noindexed, and a page blocked in robots.txt can still appear in search as a bare URL if other sites link to it.
This is why combining "Disallow" with "noindex" backfires: the crawler cannot fetch the page, so it never sees the noindex.
The directives
<meta name="robots" content="noindex">
<meta name="googlebot" content="nosnippet">
X-Robots-Tag: noindexThe meta tag lives in the HTML. The X-Robots-Tag HTTP header works for any file type, including PDFs. Crawler-specific variants apply only to the named crawler.
Canonical URLs
A rel="canonical" link tells search engines which URL you prefer when several URLs show the same content. It is a strong hint, not a command. Point it at a live page (status 200, not noindexed, not redirecting), use exactly one per page, and keep it on the same protocol and host you serve from.
Sources
See how your site handles this
Free, no account needed: which search and AI crawlers your robots.txt allows, and how a few of your pages respond.
Want every page checked, with the fixes written out?
The Technical Audit crawls up to 150 pages, checks the documented search and AI crawlers, renders JavaScript and gives you a prioritised fix list for your developer. A$79 one-off, not a subscription.