noindex vs. robots.txt Disallow

Use noindex to remove a page from search; use robots.txt to manage crawling.

Status: Active · Role: Dev

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.

Related glossary terms

Back to the full glossary · AI SEO services · Solution Sprints