robots.txt Generator
Build a clean, valid robots.txt file for your website with presets for search engines, AI crawlers (GPTBot, ClaudeBot, PerplexityBot), disallowed admin paths, and XML Sitemaps.
Write a Valid robots.txt Without Accidentally De-Indexing Your Site
A single misplaced Disallow: / line in /robots.txt can wipe an entire site from Google and Bing search results. This generator builds standards-compliant directives following RFC 9309, cleanly separating general crawler allowances, sensitive internal paths, optional AI crawler rules, and your absolute XML Sitemap URL.
Remember: robots.txt controls crawling, not access security—never rely on it to hide private files; enforce real authentication or HTTP 403/404 responses instead.
Frequently Asked Questions
Where must robots.txt be uploaded?
Place it strictly at the root of your domain (e.g., https://yourdomain.com/robots.txt) using plain UTF-8 text.
Should I block GPTBot or allow it?
If you want your public documentation, products, or tools cited in AI answers (GEO), leave AI search bots allowed and consider adding a /llms.txt index file too.