robots.txt vs Meta Robots

robots.txt controls crawling, meta robots controls indexing. Learn the difference and why blocking a page in robots.txt does not remove it from search.

robots.txt and the robots meta tag look similar, but they act at different steps. One decides whether a crawler may fetch a URL, the other decides what a search engine does with a page it has already fetched.

Robots.txt Generator

  • Controls crawling: it asks bots not to request certain paths.
  • One file for the whole host, so it suits site-wide rules and crawl budget.
  • A blocked URL can still be indexed from external links, without a snippet.
Open Robots.txt Generator

Meta Tags Generator

  • Controls indexing and link following for a single page, with noindex and nofollow.
  • Lives in the page head, or in an X-Robots-Tag header for non-HTML files.
  • Works only if the crawler can fetch the page and read the tag.
Open Meta Tags Generator

Verdict

To keep a page out of search results, let it be crawled and add noindex. Use robots.txt to keep bots away from sections you do not want crawled, and never rely on it to hide a page.