SEO Guide • 26 Sep 2026
robots.txt: Crawl Control Without Accidental SEO Damage
Learn what robots.txt can control, what it cannot remove from search, and how to publish sitemap directives safely.
The robots.txt file is a crawl-management file placed at the root of a host. It can tell compliant crawlers which paths they may request, but it is not a reliable mechanism for removing an already discoverable web page from search results.
Use robots.txt for crawl management
Block low-value crawl paths only when crawlers do not need those resources to understand important pages. Avoid blocking CSS or JavaScript that changes how a page is interpreted.
Use noindex for indexing control
If a page must not appear in search results, use a supported indexing-control method such as noindex while allowing the crawler to fetch the page, or protect the content behind authentication when appropriate.
Add an absolute sitemap directive
A Sitemap line in robots.txt gives crawlers a stable discovery path. Keep the sitemap reachable, current and limited to preferred canonical URLs.
Test changes before release
A single broad Disallow rule can affect an entire site. Treat robots.txt as production configuration, review it in deployment checklists and monitor it after migrations.
Next step: run the SEO checker on the page you are improving, fix deterministic failures first, then review external speed data.