noindex vs. robots.txt Disallow
AKANoindex directive, robots.txt disallow
Category
Glossary
Type
Documentation
Access
Public
Status
Live
Use noindex when a page should not appear in a search engine's index. Use robots.txt Disallow to ask compliant crawlers not to fetch a path. They solve different problems.
The common mistake
If robots.txt blocks Googlebot from a URL, Google cannot crawl the page to read its noindex tag. The URL may still be indexed from links elsewhere, often without a content snippet. To remove it, allow crawling and serve noindex until the URL drops out; use authentication for private content. A robots.txt rule alone is not security.
Examples
In the HTML head of a crawlable page:
<meta name="robots" content="noindex, follow" />A separate crawl restriction in the root robots.txt:
User-agent: Googlebot
Disallow: /private-crawl-area/Frequently asked questions
Can noindex be sent without HTML?
Yes. An X-Robots-Tag: noindex HTTP response header can be used for PDFs and other non-HTML resources. The crawler still needs access to read it. See Google's noindex guide.
On this site
How It Relates
A Canonical Tag helps suggest a preferred version of a page; it doesn't replace noindex when you want a URL out of search. Robots.txt Disallow does a different job: it restricts crawling, which can stop Google from seeing noindex. This can also come up in Crawl Budget discussions on large sites, but blocking a URL doesn't guarantee it leaves the index. A Technical SEO Audit can help you spot instructions that don't match your goal.