Skip to main content
sus.botdocs
  • SEO
  • AI
  • QA
  • Privacy
  • Accessibility
  • Security
  1. Docs
  2. SEO
  3. robots.txt
  4. robots.txt blocks pages you want found, or files the pages need to render

SEO finding

robots.txt blocks pages you want found, or files the pages need to render

SEO Error Severity: High

Part of the audit robots.txt. Finding id: seo.robotsTxtBlocksNeededUrls.

What it costs you

Crawlers that obey robots.txt cannot fetch these URLs.

What to do

Change the rule so it no longer matches URLs the site needs.

What it checks

  • Blocks important parts of the site
  • Blocks files needed to show pages

How to fix it

Narrow or remove the rule

  1. robots.txt line [line]: Disallow: [group key]
  2. Delete the line, or replace it with the narrower path you meant to block.
  3. To keep the rule but free one folder, add an Allow line with the longer path below the same User-agent line.

How to check: Fetch /robots.txt and confirm the change. Recrawl: the URLs are no longer reported as blocked.

Allow the files the pages need

  1. Replace the path with the folder that holds [url].
  2. The Allow path must be longer than the Disallow path ([group key]). The longer rule wins.
  3. Or delete line [line], if nothing under [group key] needs blocking.

How to check: Fetch /robots.txt and confirm the change. Recrawl: the files are no longer reported as blocked.

A real case

A development team released a robots.txt that blocked the production site, and the owner lost all organic traffic, 85 to 90% of the site's total. Almost two months later it had not come back.

Source: daniel.alvarez on Moz Q&A

Thresholds

Thresholds for robots.txt blocks pages you want found, or files the pages need to render
NameDefaultMeaning
min_inlinks10A blocked page counts as important when it is in the sitemap or has at least this many internal links pointing at it.

How to verify by hand

Search Console clicks and the URL inspection for one of the blocked URLs.

What this relies on

A page that is in the sitemap or linked from many pages is meant to be found. The robots.txt rule is the mistake.

  • All audits
  • About sus.bot
  • Open the app
  • Contact support