Robots.txt generator. AI crawlers included.
These bots pull pages into future model training. Block one and you are excluded from that model's knowledge permanently.
These bots fetch pages in real time to answer a user's prompt. Block one and your brand cannot be cited in that tool's answers.
Copy-ready.
How to use the Robots.txt Generator
This generator writes a robots.txt file from a short form. You start from a platform preset, adjust the paths crawlers should skip, and decide crawler by crawler which AI bots may fetch your pages. The file rebuilds on every change, ready to copy or download. It is for site owners, SEO leads and developers setting crawl rules on Shopify, WordPress, Webflow, Next.js or any other site.
Step by step
-
Pick a platform preset
Under platform preset, press Shopify, WordPress, Webflow, Next.js or Blank. Shopify is selected the first time you visit. A preset fills every field with that platform's usual rules, so pick it before you make your own edits, because switching presets replaces what you typed.
-
Set your sitemap
Replace yourdomain.com in Sitemap URL with your real domain and sitemap path. WordPress uses sitemap_index.xml by default; the other presets use sitemap.xml. Use a full URL that starts with https://.
-
Edit the paths
Add or remove lines in Disallow paths (one per line) for areas crawlers should skip, such as /admin or internal search. Use Allow paths (one per line, optional) for exceptions inside a blocked area, like /wp-admin/admin-ajax.php. Fill Crawl-delay (seconds, optional) with 0 to 60 only if a crawler is overloading your server.
-
Choose which AI crawlers may visit
Every bot under AI crawlers (training) and AI crawlers (retrieval) starts ticked, which means allowed. Untick a bot to block it. Or use the quick links: allow every bot, block training only (blocks the 8 training bots and keeps the 7 retrieval bots open) or block all AI bots.
-
Copy or download the file
Check the robots.txt output panel, then press Copy or Download .txt, which saves a file named robots.txt. Press Copy plain-text summary for a teammate for a short note listing the number of Disallow rules, the blocked bots and the sitemap. Publish the file at the root of your domain, at /robots.txt.
Reading the result
- The file starts with two comment lines, then a User-agent: * group holding your Allow lines, Disallow lines and any Crawl-delay. With the Shopify preset that group has nine Disallow lines, from /admin to /policies/.
- Each blocked AI bot gets its own group with Disallow: /. Once at least one bot is blocked, every AI bot still allowed gets its own group with Allow: / so your choice is explicit. The Sitemap line comes last.
- The line above the output sums up your AI choice. Open to every AI crawler means nothing is blocked. Training blocked (8/8), retrieval open means every training bot is asked to stay away while AI search tools can still fetch and cite your pages. The first number is how many of the 8 training bots you unticked.
- Retrieval blocked (for example 2/7), training open means some AI answer tools are asked not to fetch your pages while training bots still can. When bots from both groups are blocked, the line shows the total, such as 15 AI crawlers blocked, and asks you to confirm it matches your content policy.
Tips and common mistakes
- A crawler that has its own group ignores the rules under User-agent: *. When some AI bots are blocked, the ones left open get an Allow: / group, so they no longer see your Disallow paths. If they should skip those paths too, copy the Disallow lines into their groups by hand.
- Robots.txt is a request, not a lock. Well behaved crawlers follow it, others do not, so never rely on it to hide private pages.
- Disallow stops crawling, not indexing. To keep a page out of search results, let it be crawled and add a noindex tag instead.
- Google ignores Crawl-delay. Leave the field blank unless a crawler that honors it, such as Bing, is causing load.
- The comment lines at the top are optional. Crawlers skip any line that starts with #, so you can delete them.
Privacy and limits
The file is built in your browser and nothing you type is sent anywhere. The only thing saved is the name of the last preset you picked, kept in this browser's local storage so the page opens on it next time. Your path edits and bot choices are not saved, so copy or download the file before you leave.
Robots.txt is a polite request, not a firewall.
Robots.txt is a plain-text file at the root of your domain that tells well-behaved crawlers which paths they may or may not fetch. Every major search engine (Google, Bing, DuckDuckGo) and every mainstream AI crawler (OpenAI's GPTBot, Anthropic's ClaudeBot, Perplexity's PerplexityBot) reads it before making a request. It is a voluntary protocol: malicious crawlers ignore it entirely. Use robots.txt to guide crawl efficiency and signal intent, not to protect confidential pages.
The file has four main directives: User-agent names which crawler the following rules apply to (* matches every bot), Allow and Disallow list URL path patterns, and Sitemap points to your XML sitemap. A Crawl-delay directive is honored by Bing and Yandex but ignored by Google, which manages crawl rate via Search Console settings. Order matters: the generator above ships the global User-agent: * block first, then bot-specific overrides below.
The AI-crawler split matters because training and retrieval are different decisions. Training crawlers (GPTBot, ClaudeBot, Google-Extended, CCBot, Applebot-Extended) pull pages into the next model version. Blocking them removes your brand from tomorrow's world-knowledge permanently, which is a slow-decay problem you notice two model versions later. Retrieval crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot, DuckAssistBot) fetch pages in real time when a user asks a question. Blocking them makes you invisible in ChatGPT Search, Claude with web search, and Perplexity answers today. The generator exposes every bot as a separate toggle because the choice is rarely binary; most brands keep both groups open.
Tools in the same cluster: XML sitemap generator to build the sitemap you reference here. Schema markup generator for structured data on the pages that pass through. Hreflang generator for multi-locale sites.
Every directive, explained.
User-agent: *
Names which bot the following rules apply to. The asterisk matches every bot. Specific names (GPTBot, Googlebot, Bingbot) override the wildcard for that bot only.
Disallow: /admin
Asks compliant crawlers not to fetch paths that begin with the given pattern. Wildcards are supported (/*.pdf$ blocks PDFs). An empty Disallow means "allow everything".
Allow: /wp-admin/admin-ajax.php
Carves an exception inside a Disallow block. Useful for WordPress AJAX endpoints or Shopify variant URLs that live inside broadly-disallowed paths.
Sitemap: https://site.com/sitemap.xml
Absolute URL to your XML sitemap. Can appear multiple times for multi-sitemap sites. Place at the bottom of the file by convention; order does not affect parsing.
Six answers.
Should I block AI crawlers in robots.txt?
Usually no. There are two groups of AI crawlers and they do different things. Training crawlers (GPTBot, ClaudeBot, Google-Extended, CCBot, Applebot-Extended) pull your pages into the next model version. Retrieval crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot, DuckAssistBot, ChatGPT-User) fetch pages to answer a user query in real time. Blocking retrieval crawlers makes your brand invisible in ChatGPT Search, Claude, and Perplexity answers today. Blocking training crawlers excludes you from tomorrow's model knowledge permanently. Most brands benefit from allowing both; the generator above defaults to allow, and the toggles let you block individually if your content policy demands it.
Where do I upload the generated robots.txt?
The file must live at the root of your domain, served at https://yourdomain.com/robots.txt with a 200 response. On Shopify, robots.txt.liquid is editable in the theme code editor since 2021 and ships at the root automatically. On WordPress, use the Yoast or Rank Math settings pane, or upload a physical file that overrides the dynamic one. On Webflow, add it in Project Settings, SEO, robots.txt. On Next.js, put it in the app directory as a robots.ts file or in public as robots.txt. Verify with curl after deploy: curl -I https://yourdomain.com/robots.txt should return 200 with Content-Type text/plain.
What is the difference between Disallow and noindex?
Disallow tells compliant crawlers not to fetch the URL. It does not remove the URL from the search index if the URL was already indexed or if other sites link to it. Google explicitly warns that Disallow is not a guarantee of exclusion from search results. For reliable exclusion, use a meta robots noindex tag on the page itself or an X-Robots-Tag HTTP header. A common mistake is disallowing a page in robots.txt, which then prevents the crawler from seeing the noindex tag inside the page, leaving the URL in the index indefinitely. Pick one method and use it correctly.
How does Cloudflare affect my robots.txt?
Cloudflare began default-blocking AI crawlers on new domains in July 2025 via its AI Scrapers and Crawlers bot-management rule. If your apex sits behind Cloudflare with that rule on, your robots.txt Allow directives are overridden at the edge: the crawler receives a 403 before robots.txt is read. To allow AI crawlers while keeping Cloudflare proxy on, go to Security, Bots, AI Scrapers and Crawlers and turn the block off, or allowlist specific user agents in the WAF. Verify after: curl -A Mozilla/5.0 (compatible; GPTBot/1.0) https://yourdomain.com/ should return 200.
Does a larger Disallow list hurt my SEO?
No, provided the rules are intentional. A tight Disallow list on admin paths, internal search endpoints, tag archives, and checkout pages is standard and recommended. Over-blocking legitimate pages hurts crawl efficiency and can erase rankings. Common mistakes: disallowing /wp-content/ on WordPress blocks the CSS and JS Google needs to render the page, triggering mobile-usability warnings; disallowing /products/ or entire collection paths on Shopify removes indexable revenue pages. The platform presets above ship with defaults that avoid these traps.
Does this tool save my data?
No. Every value you enter lives in memory for this browser tab only. Nothing is transmitted to a server, stored in a database, or synced. Close the tab and the data is gone. The Copy button puts the text on your clipboard and the Download button writes a local file; those are the only output paths. The tool uses localStorage to remember your last platform preset, which you can clear by wiping browser data.
One file. Not enough.
Our SEO engagements ship a full crawl policy: robots.txt, XML sitemaps, canonical tags, meta robots, X-Robots-Tag headers, hreflang clusters, and an AI-crawler allow-list audit. Written plan in 2 weeks.
Published · Last updated .