Robots.txt generator
What this robots.txt generator creates
A robots.txt file tells search engine crawlers and other bots which parts of your site they may crawl. It lives at the root of your domain, for example https://example.com/robots.txt, and is the first file well-behaved crawlers request. A good robots.txt keeps bots out of admin areas, internal search results and endless filter combinations, so they spend their time on the pages that matter.
This robots.txt generator writes the file for you with correct syntax: groups that start with User-agent, rules that start with /, and Sitemap lines with full URLs. Everything runs in your browser and the preview updates as you type, so you can see exactly what you will upload.
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Sitemap: https://example.com/wp-sitemap.xml
Presets
Presets for WordPress, WooCommerce and shops
| Preset | Blocks | Why |
| WordPress | /wp-admin/, internal search (/?s=), login | Admin and search pages waste crawl budget. admin-ajax.php stays allowed because themes need it. |
| WooCommerce | Cart, checkout, account, add-to-cart and sorting URLs | These pages are personal or endless variations of the same products. |
| Online shop | Cart, checkout, account, search, sort and filter parameters | Faceted navigation can create millions of near-duplicate URLs. |
| Laravel / PHP app | Admin, auth, API and log paths | Keeps crawlers away from app internals. |
Do not block CSS, JavaScript or image folders such as /wp-content/. Google needs them to render pages, and blocking them can hurt how your pages are understood. The generator warns you if you try.
Advertisement
AI and SEO bots
Block AI crawlers and SEO tool bots
Many site owners now choose whether AI companies may use their content. Tick any of these to add a separate group with Disallow: / for that crawler:
- GPTBot, ChatGPT-User and OAI-SearchBot (OpenAI)
- ClaudeBot (Anthropic)
- Google-Extended: controls use of your content for Gemini. It does not affect Google Search rankings.
- Applebot-Extended, PerplexityBot, CCBot (Common Crawl), Bytespider and meta-externalagent
Commercial SEO crawlers such as AhrefsBot, SemrushBot, MJ12bot and DotBot can generate a lot of traffic on large sites. Blocking them reduces server load on a small VPS, at the cost of your site showing less data in those tools.
Rules to remember
Robots.txt rules to remember
- Robots.txt controls crawling, not indexing. A blocked URL can still appear in Google if other sites link to it. To keep a page out of search, allow crawling and add a
noindex meta tag.
- It is public. Anyone can read it, so never list secret or private paths. Protect them with passwords instead.
- Specific groups replace the general one. If you add a
Googlebot group, Googlebot ignores the * group entirely.
- Longest rule wins.
Allow: /admin/public/ beats Disallow: /admin/ for URLs inside that folder.
- Use wildcards carefully.
* matches anything, $ marks the end of the URL.
- Crawl-delay is respected by Bing and Yandex, but Google ignores it.
- Remove
Disallow: / when a staging site goes live.
After uploading, test real URLs with the robots.txt checker, and make sure your sitemap only lists crawlable pages with the XML sitemap generator.
Examples
Example robots.txt files
Allow everything (the right choice for most small sites):
User-agent: *
Disallow:
Sitemap: https://example.com/sitemap.xml
Staging or development site (block all crawlers, and also protect it with a password):
User-agent: *
Disallow: /
Shop with faceted navigation:
User-agent: *
Disallow: /cart
Disallow: /checkout
Disallow: /*?sort=
Disallow: /*?filter=
Sitemap: https://example.com/sitemap.xml
Keep robots.txt short and readable. Every rule is a chance for a mistake, and a single misplaced Disallow: / can remove a whole site from search within days. When you change the file, test the most important URLs with the robots.txt checker before and after uploading.
FAQ
Robots.txt Generator: frequently asked questions
What is a robots.txt generator?
A tool that builds a correctly formatted robots.txt file from simple choices, so you do not have to remember the syntax.
Where do I upload robots.txt?
To the root folder of your website so it opens at https://yourdomain.com/robots.txt. In CyberPanel or cPanel this is usually the public_html folder.
How do I block AI bots from my site?
Tick the AI crawlers you want to block. The generator adds a User-agent group with Disallow: / for each one.
Will blocking Google-Extended hurt my Google rankings?
No. Google-Extended only controls use of your content for Google's AI models. Search crawling and ranking use Googlebot.
Does robots.txt hide pages from Google?
No. It stops crawling, not indexing. Use a noindex meta tag on pages you want kept out of search results.
Should I add my sitemap to robots.txt?
Yes. A Sitemap line with the full URL helps all search engines find your sitemap, not only the ones you submitted it to.
What does Disallow with nothing after it mean?
An empty Disallow allows everything. It is the standard way to say no restrictions.
Is my robots.txt stored?
No. It is built in your browser and never sent to our server.