Schema & Technical SEO · 100% Free · No Signup

Robots.txt Generator

One wrong line in robots.txt can deindex a site — 'Disallow: /' has ended careers. This generator builds a correct file from safe presets (allow-all, staging block, WordPress) plus your custom paths, a Sitemap line, and optional explicit allows for AI crawlers like GPTBot and ClaudeBot.

User-agent: *
Disallow:

In the AI-search era, robots.txt is also your answer-engine policy: allowing AI crawlers makes your content quotable in ChatGPT, Claude, and Perplexity answers — free brand distribution for most publishers.

How to Use the Robots.txt Generator

  1. 1Pick a preset that matches your situation.
  2. 2Add any extra paths to block (admin, cart, internal search).
  3. 3Add your sitemap URL and choose AI-crawler policy.
  4. 4Upload as /robots.txt and test in Search Console's robots tester.

Frequently Asked Questions

Does robots.txt remove pages from Google?
No — it blocks crawling, not indexing. A blocked URL can still be indexed from links (shown without a snippet). To remove pages from results, use a noindex meta tag on a crawlable page.
Should I allow AI crawlers like GPTBot?
For most content sites, yes: AI answers increasingly drive discovery, and blocked bots mean your competitors get quoted instead. Block them only if content licensing is your business.
What must every robots.txt include?
At minimum a User-agent: * group (even if it disallows nothing) and a Sitemap: line. Keep it small — robots.txt is not a security tool, and sensitive paths listed there are advertised, not protected.