Free tool
Robots.txt generator for AI crawlers
Choose which AI crawlers can use your site, add your private paths and sitemap, and get a ready-to-upload robots.txt built on the 2026 crawler list.
Runs entirely in your browser. Nothing you type is sent to us.
# robots.txt # AI search and answer crawlers: allowed # AI fetchers that act for a person: allowed # AI training crawlers: blocked # Google, Bing and Apple search crawlers follow the rules for all crawlers (*). User-agent: * Disallow: /cart/ Disallow: /checkout/ # AI training crawlers and opt-out tokens: blocked User-agent: GPTBot User-agent: ClaudeBot User-agent: Google-Extended User-agent: Applebot-Extended User-agent: Meta-ExternalAgent User-agent: MistralAI-Training User-agent: Amazonbot User-agent: Bytespider User-agent: CCBot Disallow: / Sitemap: https://example.com/sitemap.xml
10 of 10 search and answer crawlers can reach your site. 7 of 7 fetchers that act for a person are allowed, and 9 of 9 AI training crawlers and tokens are blocked.
- Blocking training crawlers doesn’t remove you from AI search answers. It asks AI companies not to train on your content, and blocking Google-Extended doesn’t affect Google Search, AI Overviews or AI Mode.
- robots.txt is a request, not a lock. Check that your CDN or firewall (for example Cloudflare’s AI crawler settings) doesn’t block crawlers you allowed.
Upload it to your site’s root so it loads at yourwebsite.com/robots.txt, then test it with the AI visibility checker. Who each crawler belongs to: the 2026 AI crawler list.
FAQ
robots.txt and AI crawler questions
Does blocking GPTBot remove my site from ChatGPT?
No. OpenAI uses GPTBot to collect training data and OAI-SearchBot to show pages in ChatGPT search. Block GPTBot and allow OAI-SearchBot, and you can still be cited in ChatGPT search answers. OpenAI’s crawler docs.
Will this keep my site out of Google’s AI Overviews?
No. AI Overviews and AI Mode are part of Google Search and use Googlebot, so robots.txt can’t separate them from normal results. To leave them, use the Search generative AI setting in Search Console. Blocking Google-Extended only stops Gemini training and grounding. Google’s help page.
Why can’t I block Googlebot or Bingbot here?
They also run regular search, so blocking them would remove your site from Google or Bing results, not just from AI features. If you really need different rules for them, edit the file by hand.
Do all AI crawlers obey robots.txt?
The big operators, including OpenAI, Anthropic, Google, Perplexity, Apple, Meta and Amazon, document robots.txt as the way to control their search and training crawlers. Fetchers that act for a person are different: OpenAI, Google, Perplexity, Meta and Amazon say theirs may not follow every rule. Use your firewall if you need a hard block.
What do other websites block?
In our October 2026 study of 1,000 top websites, 16.3% block GPTBot but only 8.3% block OAI-SearchBot, and most sites have no rules for AI crawlers at all. See the full results.
Where do I put the robots.txt file?
At the root of your domain, so it loads at yourwebsite.com/robots.txt. Each subdomain needs its own. Most hosts let you upload it with their file manager. WordPress serves a virtual robots.txt you can edit with an SEO plugin, and Shopify uses a robots.txt.liquid theme template.
Is anything I type sent to you?
No. The file is built in your browser.
Link to this tool
Recommending it in an article, a course or a list of resources? Here’s the link, ready to paste. It’s free for anyone to use.
<a href="https://rankwolfseo.com/free-tools/robots-txt-generator/">AI robots.txt generator by RankWolf</a>
More free tools
AI visibility checker
See which of 26 AI and search crawlers your robots.txt lets in, then score how ready you are to be cited by ChatGPT, Perplexity and Gemini.
Open the toolllms.txt generator
Create a valid llms.txt file that points AI tools and agents to your most important pages.
Open the toolllms.txt validator
Paste an llms.txt file and check its H1, summary, sections and links against the format, line by line.
Open the toolLet RankWolf watch your crawlers.
RankWolf checks your robots.txt and firewall every week, and tells you when a change blocks an AI search crawler.
- 3-day free trial
- 14-day money-back guarantee
- Cancel anytime