How robots.txt matching works
- The crawler looks for the group that names it most specifically, like
Googlebot. If none matches, it uses the*group. - Inside that group, the longest matching path rule wins.
- If an Allow and a Disallow rule are the same length, Allow wins.
*matches any characters and$marks the end of the URL.
The tester applies the same logic, so you can see exactly why a URL is allowed or blocked.
Common robots.txt mistakes
Disallow: /left over from a staging site, blocking the whole site.- Blocking CSS or JavaScript folders, so Google can't render pages properly.
- Blocking parameters too broadly, hiding real product or filter pages.
- Using robots.txt to remove pages from Google. It stops crawling, not indexing. Use noindex instead.
To check AI crawlers specifically, use the AI crawler checker.