About the Robots.txt Generator tool
A robots.txt file sits at the root of your website and tells crawlers which parts they may visit. It keeps search engines out of admin panels, cart pages and endless filter URLs, points them to your sitemap, and more and more site owners now use it to opt out of AI training crawlers such as GPTBot, ClaudeBot and Google-Extended. One wrong line, though, can block your whole site from Google. This robots.txt generator builds a correct file for you.
Start with a default rule for all robots, either allow all or disallow all. Add disallowed folders with one click from common paths such as /wp-admin/ and /cart/, and list allowed exceptions like admin-ajax.php. Then set rules for specific bots: search engines like Googlebot and Bingbot, AI crawlers, and SEO tools like AhrefsBot and SemrushBot. You can also block any other user agent by name, set a crawl-delay and add one or more sitemap URLs.
The file updates live as you choose options. Copy it or download it as robots.txt ready to upload. It is generated in your browser, and nothing about your site is sent anywhere.
How to use Robots.txt Generator
- Under “Default rule for all robots”, choose “Allow all” or “Disallow all”, and add a crawl-delay if you need one.
- Add folders to “Disallowed paths” by typing them and clicking “Add”, or tap one of the common path suggestions.
- Under “Rules for specific bots”, set each crawler to “Same as default”, “Allow” or “Block”, and block any other bot by name.
- Enter your full sitemap URL, one per line if you have several.
- Click “Copy” or “Download” and upload the file to your site root, or click “Start over” to reset.
Features
Allow-all or disallow-all defaults
Set the base rule for every crawler in one click.
Per-bot rules
Control Googlebot, Bingbot, Yandex, Baidu, AI crawlers and SEO bots individually.
Block AI crawlers
Opt out of GPTBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot and more.
Paths, exceptions and sitemaps
Add disallowed folders, allowed exceptions, crawl-delay and multiple sitemap URLs.
Copy or download
Get a correctly formatted robots.txt file instantly.
When to use it
- Create a robots.txt for a new WordPress, Shopify or custom site.
- Stop AI companies from using your articles to train their models.
- Keep search engines away from cart, checkout and internal search result pages.
- Block aggressive SEO crawlers that waste server bandwidth.
- Temporarily block all crawling on a staging or development site.
- Point every search engine to your XML sitemap from a single, well-known location.
Frequently asked questions
Where do I upload robots.txt?
It must be in the root folder of your domain so it opens at https://yourdomain.com/robots.txt. Crawlers do not look for it in subfolders.
Does robots.txt stop a page from appearing in Google?
Not reliably. It blocks crawling, but a blocked URL can still be indexed if other sites link to it. Use a noindex meta tag on crawlable pages to keep them out of search results.
Does Google respect Crawl-delay?
No. Googlebot ignores Crawl-delay, but Bing, Yandex and some other crawlers honour it. Google adjusts its crawl rate automatically.
How do I block ChatGPT and other AI bots?
Set GPTBot, ChatGPT-User, ClaudeBot, Google-Extended, PerplexityBot and CCBot to “Block”. Reputable AI companies honour these rules, though robots.txt cannot force a crawler to comply.
Is robots.txt case sensitive?
Paths are case sensitive, so /Admin/ and /admin/ are different rules. User-agent names are matched without regard to case by major crawlers, but it is good practice to write them as shown.
If I allow a specific bot, do my disallowed paths still apply to it?
No. A bot that has its own group follows only that group, so choosing “Allow” gives it access to the whole site, including folders disallowed for everyone else.