Technical SEO

robots.txt

robots.txt is a file at the root of a domain that tells crawlers which paths they may request. It controls crawling, not indexing, and it is public.

Abstract digital artwork illustrating futuristic light trails and complex patterns. Ideal for modern…, illustrating the SEO definition of robots.txt
robots.txt is a file at the root of a domain that tells crawlers which paths they may request. It controls crawling, not indexing, and it is public.Photo: Merlin Lightpainting / Pexels

The most expensive mistake in SEO fits in one line: a `Disallow: /` shipped from staging to production. It is also the most common, and it is invisible in the interface — nothing on the site looks broken while traffic decays over the following weeks. Check the live file after every deployment that touches infrastructure.

Disallow does not remove a URL from the index; it stops the crawler fetching it, which can leave a previously indexed URL listed with no description. To keep a page out of results, allow the crawl and serve a `noindex` directive instead. Blocking a URL that carries noindex means the engine never sees the instruction.

Related terms

Guides on this subject