1001Ferramentas
🤖 SEO

Meta Robots vs X-Robots-Tag Comparator

Compares meta robots and X-Robots-Tag directives and shows which one prevails for crawlers in each combination.

When the meta robots and the header disagree

The same indexing instruction can arrive by two routes: the meta tag in the HTML and the HTTP header. Having both is common — one comes from the CMS, the other from the server or CDN — and that is exactly where the page nobody can explain the disappearance of comes from. Enter both values and the page says what actually applies.

The rule is simple and worth memorising: the most restrictive wins. There is no precedence by origin — the header does not beat the meta tag, nor the other way round. If one says index and the other says noindex, the result is noindex. The page applies that resolution separately for indexing and for link following, because the two directives are independent.

Worth remembering the defaults: with no directive at all, the behaviour is index and follow. Declaring those two words explicitly therefore changes nothing — it is noise taking up space. And there is a trap the comparison cannot catch: a page blocked in robots.txt is never fetched, so the noindex inside it is never read, and the URL can end up indexed with no content. To remove it from the index, crawling must be allowed.

Frequently asked questions

Which should I use when both are available?
The HTTP header is the only option for anything that is not HTML — PDFs, images, spreadsheets. For pages, the meta tag tends to be easier to manage through a CMS. What does not work is keeping both with different values: sooner or later somebody changes one and not the other.
Does blocking in robots.txt remove a page from the index?
No, and that confusion is the most common cause of a page that insists on showing up. The block prevents crawling; without crawling, the search engine never reads the noindex and may keep the URL indexed based on external links. To remove it, allow crawling and use noindex.
Do the directives apply to every search engine?
Indexing and following are widely respected. Others are engine-specific — some directives only Google understands, and the same holds for competitors. You can address a specific crawler by naming it, which allows different rules per engine.

Related Tools