Robots.txt Generator
Create a custom robots.txt file to control which bots can crawl your website. Choose from presets or select individual bots from our database of 257+ crawlers.
Quick Presets
Start with a preset and customize from there. Click a preset to apply it.
Grok (xAI) presets
Applies to GrokBot and xAI-SearchBot, the two names public registries report. xAI has not documented either, so treat the rule as a request and add a firewall rule if you need enforcement. Neither preset affects Twitterbot (X link previews) or the Grok Bot agent, which robots.txt does not control.
Options
Generated robots.txt
User-agent: * Allow: /
Robots.txt generator presets compared
| Preset | Blocks | Keeps | Best for |
|---|---|---|---|
| Allow AI Search, Block Training | Every bot whose purpose is training (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, Meta-ExternalAgent, CCBot and more) | Search engines, AI search indexes, user-triggered assistants | Most sites in 2026 |
| Allow All | Nothing | Everything | Sites that want maximum AI reach |
| Block AI Bots | Every AI & LLM bot, including AI search | Search engines, SEO tools | Sites opting out of AI entirely |
| Block Scrapers | Data scrapers such as CCBot, Diffbot, Bytespider | AI bots, search engines | Reducing load |
| Block AI + Scrapers | Both groups | Search engines, SEO tools | Strict content protection |
| SEO Optimized | AI bots, scrapers, aggressive bots | Search engines | Classic SEO only |
| Block All | Everything | Nothing | Staging sites only |
The new first preset reflects where the market went: Hostinger found GPTBot's coverage fell from 84% to 12% of sites while OAI-SearchBot rose to 55.67% (Hostinger, 20 January 2026).
Why the generator separates training from search
Because most AI crawling is training, and training sends no visitors. Cloudflare, 29 August 2025 measured training at 79% of AI crawling in July 2025, with search at 17% and user-triggered fetches at 3.2%.
The generator reads each bot's purpose from the same database the AI crawler checker uses, so the preset stays correct as bots are added.
Content-Signal: the optional content-use line
Tick "Add Content-Signal" in Options to prepend a line such as Content-Signal: search=yes, ai-train=no. Cloudflare introduced the signal and expanded it in July 2026 (Cloudflare, 1 July 2026); it states how content may be used after it is fetched.
Content-Signal: search=yes, ai-train=no
User-agent: GPTBot
Disallow: /Deploy and verify your new robots.txt
- Upload the file to the root of every host:
example.com/robots.txtandblog.example.com/robots.txtare separate files. - Serve it with a 200 status and
text/plain. A 5xx makes some crawlers stop entirely. - Wait up to 24 hours for crawlers to refresh their cache (RFC 9309).
- Paste the output into the robots.txt validator before deploying, then run a free AI crawler check on the live site.
- Check the CDN too. A Cloudflare AI Training block can stop Googlebot and Bingbot regardless of this file (Cloudflare, 1 July 2026); the AI crawler diagnostic will show it.
Related free tools
- AI crawler checker: tests 257 bots against your robots.txt in one scan.
- AI crawler diagnostic: fetches a page as each AI bot and names the layer that blocks it.
- robots.txt validator: shows allowed, blocked and partial status per bot.
- batch URL checker: compares up to 20 sites side by side, with CSV export.
- llms.txt generator: writes the file AI assistants read for a site summary.
- schema markup generator: produces JSON-LD for eight common types.
- GEO audit: scores a page for generative engine optimization.
Frequently Asked Questions
What robots.txt should I use to allow AI search but block AI training?
Should I add Content-Signal to robots.txt?
What is robots.txt and why do I need one?
yoursite.com/robots.txt) that tells web crawlers which pages they can and cannot access. It follows the Robots Exclusion Protocol (RFC 9309). While it's voluntary (bots can choose to ignore it), all major search engines and legitimate AI crawlers respect it. Having a properly configured robots.txt is essential for controlling how bots interact with your site.Will blocking AI bots affect my SEO rankings?
How do I deploy the generated robots.txt?
robots.txt and upload it to the root directory of your website. It must be accessible at https://yoursite.com/robots.txt. For WordPress, you can use a plugin like Yoast SEO or upload via FTP. For static sites, place it in your public folder. For Cloudflare Pages, add it to your public/ directory.What's the difference between blocking AI bots and scrapers?
Can I verify my robots.txt is working?
Verify Your robots.txt
After deploying, check if your bots are properly blocked
Check AI Crawler Access