Free Robots.txt Generator
Build a valid, optimised robots txt file in under two minutes. Use this robots txt generator to control which crawlers can access your site, protect sensitive directories, block AI training bots, and declare your sitemap — all without touching a line of code.
The Fastest Robots txt Generator That Actually Works
Most webmasters treat the robots.txt file as an afterthought. They copy a snippet from a forum post, paste it into their server root, and forget about it — never knowing whether it's helping or silently wrecking their SEO. That's a significant problem. A single wrong Disallow directive can block Googlebot from your entire site and wipe your rankings in a matter of weeks.
This free robots txt generator removes the guesswork. You configure your crawler rules through a clean visual interface, and the tool outputs a standards-compliant robots txt file that follows the Robots Exclusion Protocol as documented by Google. It handles wildcard user-agents, specific bot targeting, crawl delay settings, sitemap declarations, and — critically — the new generation of AI training crawlers that most robots txt generator tools don't even recognise yet.
Whether you're running a WordPress blog, an e-commerce store, a SaaS landing page, or a media site, getting your robots txt file right is one of the fastest, highest-leverage SEO fixes available to you. You don't need a developer. You need this robots txt generator, three minutes, and an FTP client.
Protect Admin Areas
Block crawlers from accessing /wp-admin/, /dashboard/, /login/, and other internal paths that should never appear in search results. Prevents accidental indexation of staging environments and backend interfaces.
Block AI Training Bots
Explicitly disallow GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), and others from scraping your content for AI model training. These bots respect robots.txt — use it to protect your intellectual property.
Manage Crawl Budget
Direct Googlebot away from thin pages, URL parameters, duplicate content, and low-value archive pages. Focus crawl budget on your money pages — product listings, service pages, and high-value blog posts that actually generate traffic.
Declare Your Sitemap
Including your XML sitemap URL in robots.txt is a direct signal to every major search engine. It speeds up discovery of new pages and ensures Googlebot knows exactly where to find your full content inventory.
Isolate Staging Sites
If your staging environment accidentally gets crawled, duplicate content penalties can follow. Use a blanket Disallow: / in your staging robots.txt to keep test environments completely out of search engine indexes.
Crawler-Specific Rules
Apply different rules to different bots. Let Googlebot see everything while blocking aggressive scrapers. Allow Bingbot but restrict content aggregators. Fine-grained per-crawler control without writing a single line manually.
How to Use This Robots txt Generator in 6 Steps
Choose your crawlers
Select which search engine bots and AI crawlers you want to control. You can apply rules to all bots at once using the wildcard option, or configure each crawler individually. The wildcard (User-agent: *) applies to every bot not explicitly given its own block — it's the right choice for most websites. Add specific bot blocks if you want to give different permissions to, say, Googlebot versus an AI scraper.
Set your Disallow paths
Enter the URL paths you want to block from being crawled. Common examples include /wp-admin/ for WordPress admin areas, /private/ for restricted content, /staging/ for test environments, and any internal search result pages like ?s= that create thousands of near-duplicate URLs. Enter one path per line. Paths are case-sensitive and must start with a forward slash.
Add Allow rules (optional)
If you've blocked a broad directory but need to permit specific pages within it, add Allow rules. These take precedence over Disallow for paths that match. A classic example: you might Disallow: /wp-content/ to prevent crawling of plugin files, while adding Allow: /wp-content/uploads/ so Googlebot can still index your images. Order matters — place specific Allow rules before broad Disallow rules when targeting the same directory tree.
Enable AI crawler blocking (optional)
Toggle the AI bot section to add explicit Disallow: / blocks for GPTBot, ClaudeBot, CCBot, and other AI training crawlers. These bots are designed to harvest content for large language model training data. If you'd prefer your content not be used for this purpose, blocking them via robots.txt is the simplest and most widely respected mechanism available. This has zero effect on your Google or Bing rankings.
Add your sitemap URL and crawl delay
Paste your XML sitemap URL (e.g., https://yoursite.com/sitemap.xml or https://yoursite.com/sitemap_index.xml for WordPress with Rank Math or Yoast) into the Sitemap field. This tells every major search engine exactly where your sitemap lives without them having to guess. If your server gets overwhelmed during heavy crawl sessions, add a Crawl-delay value in seconds — note that Googlebot ignores this directive, but most other bots will honour it.
Generate, copy, and upload to your root
Click Generate to produce your robots txt file. This robots txt generator outputs colour-coded results so you can quickly spot user-agent blocks, directives, and values. Copy it to your clipboard and paste it directly into your WordPress robots.txt editor (Rank Math SEO → General Settings → Edit robots.txt), or download the .txt file and upload it to your site's root directory via FTP or your host's File Manager. Verify it's live by visiting yoursite.com/robots.txt in your browser.
Build Your robots.txt File
Configure your rules below — your file generates in real time.
Paths must start with /. Leave empty to allow all.
Override Disallow for specific sub-paths.
Include full URL with https://
Ignored by Googlebot. Honoured by most others.
Disallow: Path bots cannot crawl
Allow: Override a Disallow for a sub-path
Crawl-delay: Seconds between requests
Sitemap: Full URL of your XML sitemap
2. All other sites: Upload the file to your root directory (same level as index.html/php).
3. Verify it's live: Visit yoursite.com/robots.txt in a browser.
4. Test in Google Search Console: Legacy Tools → robots.txt Tester.
Robots txt Generator — Common Questions Answered
Most websites are giving AI crawlers free access to all their content by default.
Your robots txt file is the only lever you have to stop it — and most site owners don't even know their file is blank. Use a free robots txt generator to fix it in two minutes. 𝕏 Share ThisBlock Every AI Crawler: The 2026 Bot List
Generic robots.txt tools stop at Google and Bing. The bigger question in 2026 is which AI crawlers are scraping your content to train models or power answer engines. Here is every major AI user-agent, what it does, and the exact rule to block it. Paste any line into the generator above.
| Bot token | Company | What it does | Block rule |
|---|---|---|---|
GPTBot | OpenAI | Scrapes pages to train ChatGPT / GPT models | User-agent: GPTBot → Disallow: / |
OAI-SearchBot | OpenAI | Indexes your site for ChatGPT Search results | User-agent: OAI-SearchBot |
ChatGPT-User | OpenAI | Live fetch when a ChatGPT user opens your link | User-agent: ChatGPT-User |
ClaudeBot | Anthropic | Scrapes pages to train Claude models | User-agent: ClaudeBot |
Claude-User | Anthropic | Live fetch for a Claude user request | User-agent: Claude-User |
Google-Extended | Gemini / Vertex AI training. Does not affect Google Search ranking | User-agent: Google-Extended | |
CCBot | Common Crawl | Open dataset that seeds many third-party LLMs | User-agent: CCBot |
PerplexityBot | Perplexity | Indexes content for Perplexity answer engine | User-agent: PerplexityBot |
Bytespider | ByteDance | Trains ByteDance / TikTok AI models | User-agent: Bytespider |
Amazonbot | Amazon | Feeds Alexa and Amazon AI answers | User-agent: Amazonbot |
Applebot-Extended | Apple | Apple Intelligence training (Applebot itself is search) | User-agent: Applebot-Extended |
Meta-ExternalAgent | Meta | Trains Meta AI and Llama models | User-agent: Meta-ExternalAgent |
Copy-paste: block all major AI training bots
User-agent: GPTBot User-agent: OAI-SearchBot User-agent: ChatGPT-User User-agent: ClaudeBot User-agent: Claude-User User-agent: Google-Extended User-agent: CCBot User-agent: PerplexityBot User-agent: Bytespider User-agent: Amazonbot User-agent: Applebot-Extended User-agent: Meta-ExternalAgent Disallow: / Sitemap: https://cybertrickz.info/sitemap_index.xml
Tip: blocking Google-Extended keeps your content out of Gemini training while staying fully indexed in Google Search — the two are separate.
robots.txt Directive Reference
Every rule this generator can output, and exactly what it does:
| Directive | What it does | Example |
|---|---|---|
User-agent: | Names the crawler the rules below apply to. * means every bot. | User-agent: * |
Disallow: | Path the crawler must not access. Empty value allows everything. | Disallow: /wp-admin/ |
Allow: | Carves out an exception inside a disallowed folder. | Allow: /wp-admin/admin-ajax.php |
Sitemap: | Absolute URL of your XML sitemap so crawlers find every page. | Sitemap: https://site.com/sitemap_index.xml |
Crawl-delay: | Seconds to wait between requests. Bing respects it; Google ignores it. | Crawl-delay: 10 |
* wildcard | Matches any sequence of characters inside a path. | Disallow: /*?replytocom |
$ anchor | Matches the end of the URL — useful for file types. | Disallow: /*.pdf$ |
