Google's discussion of noindex in robots.txt

  • Published
  • Updated
  • Reading time 2 min.
Google's discussion of noindex in robots.txt

A discussion about John Mueller's personal robots.txt file raised a useful technical question: does Google support noindex in that file? The answer is no. A personal experiment by a search employee is not product documentation.

Why the robots.txt discussion matters

A robots.txt file can contain comments and unsupported lines as well as recognised rules. Their presence does not make every line effective.

Use official documentation to determine the supported syntax before copying an example into a production site.

The noindex directive

Robots.txt communicates crawl rules to supporting crawlers. It is not an access-control mechanism, and unsupported fields can be ignored.

Google documents the rules it supports. A field that appears in a file but is not supported will not necessarily do anything, regardless of who created the example.

This distinction prevents personal experiments being mistaken for a recommended configuration.

Noindex belongs in a supported robots meta tag or X-Robots-Tag response header. Google does not support a noindex field in robots.txt.

SEO The question for an

reviewing a robots.txt file is whether a line such as

the following has documented support:

noindex:

For Google, it is not a supported robots.txt indexing control.

Do not rely on it to remove pages from search results.

Use the supported page-level or HTTP-header method instead.

Why crawling and indexing controls differ

Google's documentation separates the two tasks:

The available options are more limited:

A robots.txt noindex line does not prevent Google indexing a URL.

Disallow controls crawling. Noindex controls indexing after the crawler can access and process it. Combining the concepts in an unsupported field does not make both controls work.

If robots.txt blocks a page, Google may not be able to see its noindex tag. The URL can still appear in results without its content being crawled. Allow access when you need Google to process an indexing directive.

A configuration should be assessed by its actual effect, not by how plausible a field name looks.

Before changing production rules:

Decide whether you need to limit crawling, prevent indexing or restrict access. Use the corresponding supported mechanism and verify the result in Search Console and server responses.

Avoid copying a whole robots.txt file without checking its scope. A broad rule can affect important pages, while an unsupported one may create a false sense of protection.

Sources and further reading

About the author

Lukas Juodagalvis
Lukas Juodagalvis SeoRocket.lt

Specialises in end-to-end SEO, from strategy and technical implementation to website migrations. His experience covers Lithuania and more than 20 markets, including work with Cedral, Eternit, Euronit, Siniat, Promat and Skamowall.

Articles by this author
Next article SSL certificates SSL certificates Read