Rankahead
Free tool

Robots.txt Generator for AI

Toggle which AI crawlers can access your site, and get a ready-to-use robots.txt.

Allow each AI crawler to access your site:

robots.txt

User-agent: GPTBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: Claude-Web
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: Bingbot
Allow: /

User-agent: CCBot
Allow: /

User-agent: *
Allow: /

Frequently asked questions

Why would I want to block AI crawlers specifically?

Some site owners want their content indexed by search engines but not used to train AI models, or want to permit answer-engine crawlers (which drive citations) while blocking training-only bots — this generator lets you make that distinction crawler by crawler.

Does blocking a crawler like GPTBot stop ChatGPT from citing my site?

It depends on the specific crawler — some bots are used for training data collection, others for live retrieval when answering a user's question. Blocking a training-only crawler while allowing a retrieval-specific one lets you opt out of training while staying eligible for citation.

Will this robots.txt work for a site with an existing one already?

You'll need to merge the generated AI-crawler rules into your existing robots.txt rather than replace it wholesale, unless your current file only handles the crawlers this tool also covers.

How do I know if my current setup already blocks helpful AI crawlers by accident?

Use the Robots.txt Tester & Validator on this site to paste your current file and check exactly which bots can and can't fetch specific paths — a surprising number of sites accidentally block AI crawlers through an overly broad wildcard rule.