robots.txt vs noindex: what's the difference?
robots.txt and a noindex tag are often confused, and using the wrong one leads to pages you wanted hidden showing up — or pages you wanted indexed disappearing.
What each one does
robots.txt asks crawlers not to fetch a URL. It controls crawling, not indexing — a blocked URL can still appear without content.
A noindex tag tells search engines not to index a page they've fetched. To see it, they must be allowed to crawl the page.
Using them correctly
To keep a page out of results, allow crawling and use noindex — don't block it in robots.txt.
Use robots.txt to save crawl effort on things that genuinely shouldn't be fetched.
In short
Crawling and indexing are different controls. Allow-plus-noindex hides a page; a robots.txt block only stops the fetch. Match the tool to the goal.