robots.txt Generator & Path Tester


How robots.txt Matching Works (RFC 9309)

Search engines evaluate robots.txt by first selecting the most specific matching User-agent group (falling back to * if no specific agent matches), then finding all Allow and Disallow rules whose prefix or wildcard pattern (*, $) matches the request path. When multiple rules match, the longest rule wins (and Allow wins ties).

  • Staging Environments: Never rely solely on Disallow: / to hide sensitive staging sites - combine Basic Auth or IP allowlists with robots.txt.
  • Sitemap Hint: Always include an absolute Sitemap: https://... URL at the bottom of robots.txt.
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy