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
Find the rule blocking each URL group. Search Console's URL Inspection tool shows if a URL is blocked.
Remove or narrow rules that block wanted pages. Remember rules match by prefix:
Disallow: /blogalso blocks/blog-tips/.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.
Related issues
Sources and references
Google Search Central, Introduction to robots.txt
Google Search Central, How Google interprets the robots.txt specification

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.



