Tools/Robots.txt Generator

Free Generator

Robots.txt Generator

Build a valid robots.txt file with allow/disallow rules, crawl-delay, and presets for AI crawlers. Control which bots access your content — including GPTBot, ClaudeBot, and PerplexityBot.

Free. No signup. Runs entirely in your browser — no data sent to any server.

Quick presets

Configure your robots.txt

Block 1

Use * to match all crawlers, or specify a bot name (e.g. GPTBot).

Rules

Googlebot ignores this — use Google Search Console for Googlebot crawl rate.

Added as a global Sitemap: directive at the end of the file.

Your robots.txt

/robots.txt3 lines
User-agent: *
Disallow: /admin/
Allow: /

AI crawlers and citations

GPTBot, ClaudeBot, and PerplexityBot determine whether your content surfaces in AI-generated answers. Blocking them prevents citation; allowing them makes your brand eligible to appear in ChatGPT, Perplexity, and Gemini responses.

Where to place robots.txt

  • Root domain only. example.com/robots.txt covers the whole domain. Subdomain rules require a separate file on each subdomain.
  • Test before deploying. Use Google Search Console’s robots.txt tester to verify directives work as intended.
  • Not a security measure. robots.txt is public. Sensitive content needs real access controls, not just a Disallow rule.

AI crawlers explained

robots.txt is your AI citation switch

01

Block to protect content

Add Disallow: / for GPTBot, ClaudeBot, and Bytespider to prevent your content being used in AI model training without your consent.

02

Allow to get cited

Add Allow: / for PerplexityBot and GPTBot so your brand surfaces when their engines answer questions in your space. Blocking them means zero presence in AI-generated answers.

03

Mix allow and block

The nuanced approach: allow marketing and product pages for citation, but disallow account areas, gated content, and any pages with personal data using more specific path rules.

Frequently asked questions

Ready to go further?

Technical hygiene is step one. Revenue is the point.

A clean robots.txt protects your crawl budget. A paid-to-organic gap analysis shows which paid keywords organic search can own — and what that shift is worth in hard revenue numbers.