Skip to content
Nazmul Nikhil
Menu

Robots.txt Rules Disallow to Crawl (Ahrefs): Check What You're Blocking

Ahrefs lists pages your robots.txt blocks from crawling. Some blocks are right; others hide pages you want ranked. Here's how to review them.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Robots.txt Rules Disallow to Crawl (Ahrefs): Check What You're Blocking
Photo: R. David Cummins on Unsplash

In short

Ahrefs flags "Robots.txt rules disallow to crawl" for URLs it found but couldn't crawl because robots.txt disallows them. Blocking admin areas, internal search and filter URLs is fine. Blocking pages you want ranked is not. Also, robots.txt stops crawling, not indexing: Google can still index a blocked URL without its content ("Indexed, though blocked by robots.txt"). To keep a page out of search, allow crawling and use noindex.

This issue is a list of URLs your robots.txt tells crawlers not to visit. Whether that's a problem depends on the URLs.

Blocked on purpose or by mistake?

Blocked URLs Usually
/wp-admin/, /admin/, /cart/, /checkout/ Fine
Internal search results, filter combinations Fine
/api/ endpoints Fine, unless pages need them to render
CSS or JavaScript files Problem: Google needs them to render pages
Blog, service or product pages Problem: remove the rule
A whole site (Disallow: /) Serious problem unless it's a staging site

How to fix it

  1. Find the rule blocking each URL group. Search Console's URL Inspection tool shows if a URL is blocked.

  2. Remove or narrow rules that block wanted pages. Remember rules match by prefix: Disallow: /blog also blocks /blog-tips/.

  3. For pages you want out of the index, allow crawling and add noindex instead.

See "Robots.txt has syntax error" for where to edit robots.txt on each platform.

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditBlocked by robots.txtRobots.txt disallowIndexed though blocked by robots.txt
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com