Blog
Technical SEO5 min read

Robots.txt Mistakes That Quietly Tank Your SEO

A single misplaced slash in robots.txt can hide an entire site from search. It's a powerful file that's easy to get dangerously wrong.

The SEODock Team·

Robots.txt is a plain text file at the root of your domain that tells crawlers which paths they may or may not request. It's deceptively simple, and that simplicity is exactly where the danger lies — one careless directive can block far more than you intended.

What robots.txt does and doesn't do

It controls crawling, not indexing. Disallowing a URL stops compliant crawlers from fetching it, but a blocked URL can still appear in results if it's linked elsewhere — just without a useful snippet. To keep a page out of the index, you need a noindex directive on a page the crawler is actually allowed to read.

The catastrophic one-liner

Disallow: / blocks your entire site. It belongs on staging, never in production.

The most damaging mistake is shipping a staging configuration to production. A site under development often blocks everything; if that file goes live, crawlers stop fetching your pages and rankings erode. Always confirm production robots.txt allows what should be crawlable.

Try the toolBuild a safe robots.txt

Other common errors

  • Blocking CSS or JS that engines need to render and understand the page.
  • Using robots.txt to hide sensitive pages — it's public and lists what you're hiding.
  • Assuming Disallow removes a page from the index (it doesn't).
  • Forgetting the Sitemap reference line.
  • Case and path errors — directives are case-sensitive and path-specific.

Test before you trust it

After any change, fetch the live file and read it line by line, then verify key URLs are allowed using your search engine's robots testing tools. Treat robots.txt with the same caution as a production database migration: small, deliberate, and verified.

Put this into practice

Every SEODock tool runs in your browser — no accounts, no uploads.

Browse all tools →