robots.txt generator
Build a robots.txt for crawlers and AI bots. Start from a preset, toggle the major AI crawlers,
add custom rules and point to your sitemap. Output updates live — copy it or download it as robots.txt.
Preset
Default rules (all crawlers)
AI crawlers
Choose whether each AI crawler may index your site. "Allow" emits an explicit allow group; "Disallow" blocks it entirely.
Extra rules
robots.txt
Serve at the site root as /robots.txt. It is advisory — well-behaved bots respect it, bad actors may not.
Notes on robots.txt
- Presets are starting points
- WordPress and WooCommerce presets block admin, cart and account areas while leaving content indexable. Adjust the disallow list for your plugins and structure.
- AI crawler policy
- GPTBot (OpenAI), ClaudeBot (Anthropic), PerplexityBot and CCBot (Common Crawl) are the main AI training crawlers. Blocking them does not affect Google rankings; it only limits AI training and some AI search features.
- robots.txt is not security
- Disallowed paths are still crawlable if linked elsewhere — robots.txt only asks politely. Use
noindexmeta tags or auth for real protection. - Sitemap directive
- The
Sitemap:line helps search engines discover your URLs. Point it at your XML sitemap; it's optional but recommended.
Keep crawlers honest with a security headers file, or browse all tools.