SEO & site checks

Free Robots.txt Generator, No Signup

Configure user-agent rules, Disallow/Allow paths, AI crawler presets, and sitemap directives, then copy or download your robots.txt file.

Quick presets
Generated robots.txt
User-agent: *
Allow: /
Disallow: /admin/
Disallow: /api/

Sitemap: https://example.com/sitemap.xml

Best Practices for robots.txt

Keep robots.txt short and explicit. Allow public marketing pages, blog posts, and assets (CSS/JS so Googlebot can render your pages), and disallow internal admin dashboards, API endpoints, or staging paths. Always include a Sitemap: directive pointing to your canonical XML sitemap.

Worked Example

User-agent: *
Allow: /
Disallow: /admin/
Disallow: /api/

Sitemap: https://acme.com/sitemap.xml

Limitations

  • Not an access control mechanism. Never rely on robots.txt to hide sensitive data—malicious bots ignore it, and URLs can still be indexed if linked elsewhere. Protect private routes with authentication.
  • Verify live after deploy: Test your live robots.txt →

Frequently Asked Questions

Where do I put robots.txt on my site?

Place it at the root of each host: https://yourdomain.com/robots.txt. Subdomains (like app.yourdomain.com) need their own robots.txt if they are served separately.

Should I block AI bots like GPTBot and ClaudeBot?

If you want your docs and product pages cited in AI answers, allow OAI-SearchBot and PerplexityBot. If you prefer to opt out of model training datasets, you can disallow GPTBot or CCBot.

Does Googlebot obey Crawl-delay?

No. Googlebot ignores Crawl-delay (use Google Search Console crawl-rate settings if needed). Bingbot and some other crawlers still honor Crawl-delay.

Can I test my generated robots.txt after deploying it?

Yes — deploy the file to /robots.txt and run your domain through our Robots.txt Tester to verify live responses and path matching.

Publish your site with clean crawl rules

Once your robots.txt and sitemap are live, build initial domain authority by submitting to curated startup directories.