robots.txt Generator
Generate, validate and test robots.txt rules, including presets that block AI crawlers.
How to use
Choose a preset or build rule groups with one or more User-agent tokens. Add Allow and Disallow paths; the longest matching rule wins and Allow wins ties. Crawl-delay is non-standard and Google ignores it, so use server-side rate limiting when needed. Add absolute Sitemap URLs, then copy or download the host-free output. In Validate & test, paste a file and enter a path plus user agent to inspect RFC 9309 matching and syntax warnings.
FAQ
How do I block GPTBot and other AI crawlers?
Select the block AI crawlers preset. It creates a shared Disallow rule for freshness-controlled vendor tokens; review the list before publishing because crawler names change.
How does the robots.txt tester choose a rule?
It selects the most-specific matching user-agent groups, combines equal groups, then uses the longest matching path. Allow wins a tie with Disallow.
Does Google support Crawl-delay?
No. Crawl-delay is a non-standard extension and Google ignores it. Other crawlers may support it, so check each vendor documentation.