Robots.txt Generator with AI Crawler Controls
Build a valid robots.txt with per-bot rule groups, CMS templates for WordPress, WooCommerce, Shopify, Drupal, Joomla and Next.js, one-click blocking of AI and SEO scrapers, sitemap declarations and live validation.
Robots.txt Workspace
Start from a CMS template, add rule groups, choose which AI and SEO crawlers to block, then download the file.
Rule groups (1)
AI crawlers
SEO & backlink crawlers
# robots.txt generated with Agenvix — https://agenvix.com/robots-txt-generator/ User-agent: * Disallow: Sitemap: https://example.com/sitemap.xml
Why Site Owners Use the Agenvix Robots.txt Generator
One misplaced slash can de-index a site. The generator checks the output as you build it.
Up-to-Date AI Bot List
Block or allow GPTBot, OAI-SearchBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot, Bytespider and others with a single switch each.
Platform Templates
Sensible starting rules for WordPress, WooCommerce, Shopify, Drupal, Joomla and Next.js that keep assets crawlable while hiding admin and cart paths.
Live Validation
Warnings for Disallow: / on all bots, paths without a leading slash, blocked CSS or JS, relative sitemap URLs and crawl-delay directives Google ignores.
Nothing Leaves Your Browser
Your site structure, admin paths and sitemap URLs are never sent to a server.
Simple as 1-2-3
How the Robots.txt Generator Works
From template to deployed file in three steps.
Pick a Template
Choose Allow everything or a CMS template. Each loads an editable rule group for all crawlers.
Refine the Rules
Add groups for specific bots, list Allow and Disallow paths one per line, toggle AI and SEO crawler blocks and add your sitemap URLs.
Download and Upload
Copy or download robots.txt and place it at the root of your domain, for example https://example.com/robots.txt.
Robots.txt Directives
What each directive does and how major search engines treat it.
| Feature / Specification | Best Use Case | Engine / Output Standard | Privacy & Security | Performance Rating | Action |
|---|---|---|---|---|---|
| User-agent | Start a rule group | RFC 9309 | Required | Core | |
| Disallow / Allow | Path prefixes, * and $ wildcards | Longest match wins | Per group | Core | |
| Sitemap | Point crawlers to XML sitemaps | Absolute URL, any position | Global | Recommended | |
| Crawl-delay | Throttle Bing / Yandex | Ignored by Google | Per group | Partial | |
| AI crawler blocking | Opt out of model training | GPTBot, ClaudeBot, CCBot… | Voluntary compliance | Policy | |
| Noindex | Removing pages from results | Not supported in robots.txt | Use meta robots | Unsupported |
Robots.txt Done Right
1. What robots.txt can and cannot do
Robots.txt tells well-behaved crawlers which URL paths they may request. It controls crawling, not indexing: a page blocked in robots.txt can still appear in search results if other sites link to it, just without a description. To keep a page out of the index use a noindex meta tag or header and leave the page crawlable so the directive can be read. The protocol is standardised as RFC 9309 and the file must live at the root of the host, in UTF-8, served with a 200 status.
2. Rule groups, wildcards and precedence
Each group starts with one or more User-agent lines followed by Allow and Disallow rules. A crawler obeys only the most specific group that matches its name, so a Googlebot group completely replaces the * group for Googlebot. When Allow and Disallow both match a URL, Google and Bing apply the rule with the longest path.
*matches any sequence of characters,$anchors the end of the URL.- Paths are case sensitive and must start with
/. - An empty Disallow line allows everything;
Disallow: /blocks the whole site.
3. Blocking AI and SEO scrapers
Most large AI companies publish user-agent names and state that they honour robots.txt: GPTBot and OAI-SearchBot for OpenAI, ClaudeBot for Anthropic, Google-Extended for Gemini training, PerplexityBot, Applebot-Extended, CCBot for Common Crawl and Bytespider for ByteDance. Blocking them is a policy choice; note that Google-Extended does not affect Google Search rankings while blocking OAI-SearchBot removes you from ChatGPT search citations. Compliance is voluntary, so robots.txt is not a security control.
4. Mistakes that hurt rankings
The most damaging errors are leaving a staging Disallow: / on a live site, blocking CSS, JavaScript or image folders so Google cannot render pages, blocking paginated or faceted URLs that are the only path to products, and using Crawl-delay expecting Google to slow down. The validator in this generator flags each of these before you download the file. After deploying, test the file in Google Search Console and request a recrawl.
Everything you need to know about robots.txt
Placement, syntax, AI crawlers and common pitfalls.
Where do I put the robots.txt file?
At the root of the host, so it is reachable at https://yourdomain.com/robots.txt. Files in subdirectories are ignored, and each subdomain and protocol needs its own file.
Does robots.txt stop a page from being indexed?
No. It stops compliant crawlers from fetching the page, but the URL can still be indexed from external links. Use a noindex meta tag or X-Robots-Tag header for pages that must stay out of results, and do not block those pages in robots.txt.
How do I block ChatGPT and other AI crawlers?
Enable the toggles in the AI crawlers section. The generator writes a Disallow: / group for each selected user agent such as GPTBot, ClaudeBot, Google-Extended, PerplexityBot and CCBot.
Is Crawl-delay supported?
Bing, Yandex and some smaller crawlers honour Crawl-delay in seconds. Googlebot ignores it; set crawl rate in Google Search Console instead. The generator includes it only when you enter a value and shows a reminder.
Can I use wildcards?
Yes. Google, Bing and most modern crawlers support * for any characters and $ for end of URL, for example Disallow: /*.pdf$ blocks PDF files anywhere on the site.
Should I block CSS and JavaScript?
No. Google renders pages to evaluate them and needs those files. The validator warns when a rule appears to block .css or .js paths or common asset folders.
Do I need a Sitemap line?
It is recommended. Adding Sitemap: https://example.com/sitemap.xml lets every crawler discover your sitemap without a Search Console account. Use absolute URLs and one line per sitemap.
Is my configuration stored anywhere?
No. The file is generated in your browser and only exists where you copy or download it.
Related Developer Utilities
Discover companion utilities engineered for zero-log speed and browser-side execution.
Meta Tag Generator
Write title tags and meta descriptions with a live Google SERP preview, pixel limits and Open Graph output.
UTM Builder & Generator
Create UTM codes and tracking links for GA4 with naming validation, one link per source and CSV export.
URL Slug Generator
Turn titles into clean, SEO-friendly URL slugs with transliteration, stop-word removal and bulk mode.
URL Encoder & Decoder
Percent encode URL components or whole links, and decode safely with UTF-8 handling.
JSON Formatter & Validator
Prettify, format, repair syntax errors, and convert raw JSON data strings into trees.
HTML Entity Encoder
Escape reserved HTML characters or resolve named and numeric entities back to plain text.
More in Text & SEO
Specialized utilities within the same technical domain
