Skip to content

robots.txt vs Meta Robots

Crawl control versus index control—compare the two mechanisms and the classic mistake of blocking a page you wanted deindexed.

Overview

The two mechanisms operate at different stages, and confusing them is the most common indexation bug. A disallow in robots.txt prevents fetching, so a crawler never sees the noindex tag on that page—and a URL with enough external links can still appear in results. To deindex, allow the crawl and serve noindex; to save crawl budget on genuinely worthless paths, disallow.

Pros

  • Stops crawling of whole path patterns
  • Protects crawl budget on large sites
  • One file governs the entire host

Cons

  • Does not remove a URL from the index
  • Blocked pages hide their own noindex tag

Pros

  • Controls indexing of a specific page
  • Supports noindex, nofollow, and more
  • Precise, per-URL directive

Cons

  • Requires the page to be crawlable
  • Wastes crawl budget on large blocked sets

Comparison table

Aspectrobots.txtMeta robots
ControlsCrawlingIndexing
ScopePath patterns per hostA single page
Removes from indexNoYes, once crawled
Best fitYou want crawlers to skip a section entirelyYou want a page crawled but kept out of the index

Recommendation

Use noindex for pages that must leave the index, and reserve robots.txt for sections crawlers should never fetch. Never apply both to the same URL, because the block prevents the directive from being read.

Related tools

Related articles

Frequently asked questions

Why is my disallowed page still in search results?
Disallow blocks fetching, not indexing. The URL can be listed from external links alone. Allow the crawl and return noindex until it drops out.
Does an HTTP header work instead of a meta tag?
Yes. X-Robots-Tag carries the same directives and is the practical option for PDFs and other non-HTML responses.
What pushes someone toward robots.txt instead of Meta robots?
robots.txt wins when you want crawlers to skip a section entirely. The practical upside is that stops crawling of whole path patterns, and protects crawl budget on large sites. The trade-off to watch is that does not remove a URL from the index.
When does Meta robots beat robots.txt for the same job?
Reach for Meta robots when you want a page crawled but kept out of the index. It gives you controls indexing of a specific page plus supports noindex, nofollow, and more, at the cost that requires the page to be crawlable.
Can ToolHub help me try robots.txt and Meta robots before I commit?
Yes. The tools linked from each side of robots.txt vs Meta Robots run in your browser, so you can exercise robots.txt and Meta robots with sample data without uploading anything.