What robots.txt does
A robots.txt file at the root of a site, like https://example.com/robots.txt, tells crawlers which paths they may fetch. It's organised in groups: one or more User-agent lines name the crawlers a group is for, and the Allow and Disallow lines below them list path rules. Sitemap lines point crawlers to the site's sitemaps. The format was standardised in 2022 as RFC 9309. The file is a request, not a lock: well-behaved crawlers follow it, but it doesn't stop anyone from loading a page.
How the test decides
The checker follows RFC 9309 step by step:
- It picks the group for your user agent. Names match without regard to case, and when a full user-agent string matches more than one group, the most specific (longest) name wins. Groups with the same name are merged. If nothing matches, the
User-agent: *group applies; if there is none, everything is allowed. - It compares the path with each rule from the start.
*matches any characters and a$at the end means the path must end there. - The longest matching rule wins. If an Allow and a Disallow rule are equally long, Allow wins. No matching rule means the path is allowed, and
/robots.txtitself is always allowed.
The result names the rule and its line number, and the file view highlights the lines involved.
Common questions
What if the site has no robots.txt?
A 404 or other 4xx answer means "no restrictions": crawlers may fetch everything. A 5xx error or a timeout is treated the opposite way. RFC 9309 says a crawler must then assume the whole site is off limits until it can read the file.
Does Google follow these rules exactly?
Google engineers co-wrote RFC 9309, and Google follows it with a few additions. For example, its specialised crawlers such as Googlebot-Image fall back to the Googlebot group when there is no group of their own. Google ignores Crawl-delay, which some other crawlers use.
How do I block AI crawlers?
Add a group for each crawler you want to stop, such as GPTBot, ClaudeBot, CCBot or Google-Extended, with Disallow: /, then test each name here. If you collect public data yourself, for example for web scraping, read each site's robots.txt and terms first. The HTTP status checker shows how a URL answers.