Skip to content
SEO Audit Checker

robots.txt missing, erroring or blocking the site

Medium priorityTechnical

robots.txt is missing, returns a server error, or disallows Google from the whole site.

What triggers this issue

  • No robots.txt file (404): not required, but it’s where you point crawlers to your sitemap.
  • robots.txt returns a server error (5xx): Google pauses crawling the whole site.
  • robots.txt blocks Google from the whole site with Disallow: /.

Why it matters

robots.txt is the first file search engines request. A 5xx response makes Google treat the whole site as off-limits until it recovers, and Disallow: / (often left over from a staging site) removes everything from results over time.

How to fix it

  1. Serve /robots.txt with status 200, or 404 if you have no rules.
  2. Remove Disallow: / for Googlebot and * unless the site is meant to be hidden.
  3. Add a Sitemap: line, and test rules with our robots.txt tester.
Minimal robots.txt
User-agent: *
Allow: /

Sitemap: https://example.com/sitemap.xml
In-depth guiderobots.txt: how to set it up without blocking Google

See all 82 SEO issues →