One per line
User-agent: * Allow: / Disallow: /admin Disallow: /api Disallow: /private Sitemap: https://example.com/sitemap.xml
How to use
Set the crawler switches
Tick Allow all crawlers to keep the site open, or tick Block AI crawlers to add ready-made rules for GPTBot, ClaudeBot, Google-Extended, and CCBot in one click.
List paths and extras
Type one path per line in the Disallow paths box, add your Sitemap URL, and set an optional Crawl-delay in seconds if bots hammer your server.
Copy the finished file
Hit the copy button next to Generated robots.txt and upload the text to your domain root, so it answers at yoursite.com/robots.txt.
Why Robots.txt Generator
- Configure crawler rules and this robots txt generator writes valid syntax with no typos.
- One-click block for AI crawlers like GPTBot, ClaudeBot, Google-Extended, and CCBot.
- Set your own disallow paths for a custom robots txt, then copy the whole file in one go.
- Includes the sitemap declaration automatically.
- Free with no limit. A free robots txt generator with no sign up.