Robots.txt generator and tester

Build a correct robots.txt in a minute, with presets for WordPress, online stores, SaaS apps, and staging, and a clear choice for AI crawlers. Then test any path against Googlebot, GPTBot, or any other bot.

Start from
AI crawlers

Search crawlers for ChatGPT, Perplexity, and Claude can fetch you; model-training crawlers are blocked.

One per line. * matches anything, $ marks the end of a URL.

robots.txt

User-agent: *
Allow: /

# Opt out of AI model training
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
User-agent: Meta-ExternalAgent
User-agent: Bytespider
User-agent: Amazonbot
Disallow: /

Upload it to the root of your domain so it loads at /robots.txt.

Test a URL path

Rules to test

Allowed: other bots on /

Matched rule "Allow: /" in the User-agent: * group.

Pro · $10 once, no subscription

Published your robots.txt? Check that it works

A scan confirms crawlers can actually reach your pages. Pro adds the fix for every issue it finds.

  • Every technical SEO fix with steps: robots.txt, sitemap, redirects, security headers
  • AI citation check on up to 100 pages (free: 20)
  • A batched prompt for every SEO, GEO, and AEO issue

One payment. Future Pro updates included. Price shown in USD. VAT or sales tax may be added at checkout based on your location.

The two-minute robots.txt checklist

  • Never ship a staging file with Disallow: / to production.
  • Do not block CSS or JavaScript; Google needs them to render your pages.
  • List your sitemap with a full URL.
  • Decide on AI crawlers on purpose instead of by accident.

Read the full guide: robots.txt for AI crawlers.

Questions

Should I block GPTBot and other AI crawlers?

Block training crawlers (GPTBot, ClaudeBot, Google-Extended, CCBot) if you do not want your content used to train models. Do not block search crawlers (OAI-SearchBot, PerplexityBot, Claude-SearchBot) unless you are fine with ChatGPT search, Perplexity, and Claude rarely showing or citing your pages.

Does robots.txt hide a page from Google?

No. It stops crawling, not indexing. A blocked page can still appear in results if other sites link to it. Use a noindex meta tag (and let Google crawl it) or password protection to keep a page out.

Why does a named User-agent group ignore my * rules?

Under RFC 9309 a crawler uses only the most specific group that names it. If you add a GPTBot group, GPTBot ignores everything under User-agent: *. This generator only adds named groups that block, so your * rules keep applying to everyone else.

Where do I put robots.txt?

At the root of each host: https://example.com/robots.txt. A subdomain such as blog.example.com needs its own file.

If robots.txt allows a bot, can Cloudflare still block it?

Yes. robots.txt is advice to well-behaved crawlers; WAF or Bot Fight rules can still challenge or block them. Allow the AI search user-agents you care about at the CDN too.