Free Robots.txt Tester & Validator, No Signup
Fetch a site’s live robots.txt, inspect parsed rules and sitemaps, and test any URL path against search and AI user-agents using RFC 9309 matching.
How Crawlers Read robots.txt
Before crawling a site, search engines and AI bots request /robots.txt at the root of the host. They select the most specific matching User-agent block (falling back to User-agent: * only if no specific block matches) and evaluate Allow and Disallow patterns using longest-match precedence.
Status codes matter too: a 404is treated as "allow everything," while a 5xx server error causes crawlers to pause crawling temporarily. A 200 OK returning an HTML error page (a soft-404) is ignored by Googlebot.
Worked Example: Specific Agent Override
User-agent: * Disallow: /admin/ User-agent: GPTBot Disallow: /
In this file, Googlebot matches User-agent: * and is only blocked from /admin/. GPTBot matches its own group and is blocked from the entire site—it does not merge rules from *.
Limitations
- Standard directives only. Evaluates RFC 9309
User-agent,Allow,Disallow(including*and$), and extractsSitemaplines. - Need to create a new file? Use our Robots.txt Generator →
Frequently Asked Questions
What happens if a site has no robots.txt (404)?
According to RFC 9309, a 4xx response on /robots.txt means there are no crawl restrictions and search engines may crawl all public URLs.
How are conflicting Allow and Disallow rules resolved?
The rule with the longest matching pattern wins. If an Allow and a Disallow pattern have the exact same length, Allow wins.
Do specific User-agent rules inherit from User-agent: *?
No. When a specific User-agent group (such as GPTBot or Googlebot) exists in robots.txt, that crawler only follows its own group and ignores the * group.
Does robots.txt block pages from appearing in Google search results?
Not always. Disallow stops crawling, not indexing—if other sites link to a blocked URL, Google can still index the URL without a snippet. Use a noindex meta tag or X-Robots-Tag header to prevent indexing.
Make sure crawlers can reach your launch pages
Verify your robots.txt allows Googlebot and other crawlers to index your product pages before you start building backlinks.