About the Robots.txt Generator
robots.txt tells search engines which parts of your site to crawl. Build a correct file with the rules you need and download it for your site’s root folder.
The robots.txt file sits at the root of a website and tells crawlers which paths they may visit. A correct file keeps search engines focused on useful pages, keeps admin areas and internal search results out of crawl budgets and points crawlers to your sitemap. A wrong file can accidentally block an entire site from Google, which is one of the most damaging and common SEO mistakes.
This generator builds a valid file from simple choices: allow or block crawling by default, list paths to disallow and paths to always allow, add one or more sitemap URLs and an optional crawl delay. It also offers rules for AI crawlers such as GPTBot, ClaudeBot, Google-Extended, CCBot and PerplexityBot, for site owners who do not want their content used to train AI models. Download the result and upload it to your site root.
How to use the Robots.txt Generator
- 1Choose the default rule for all crawlers.
- 2Add folders to block and your sitemap URL.
- 3Download robots.txt and upload it to your site root.
Key features
- Allow or block by default.
- Disallow and allow path lists.
- Sitemap URLs.
- Optional crawl delay.
- Rules for common AI crawlers.
Practical uses
- Creating a robots.txt for a new website.
- Blocking admin, cart and search pages from crawling.
- Opting out of AI training crawlers.
- Adding the sitemap location for search engines.
Example
Allowing all crawlers, disallowing /wp-admin/ while allowing /wp-admin/admin-ajax.php, and adding https://example.com/sitemap.xml produces a short file that WordPress sites commonly use.
Tips and common mistakes
- Never block CSS and JavaScript files that pages need to render.
- Test changes with Google Search Console’s robots.txt report.
- Remember that robots.txt is public; do not list secret paths in it.
Limitations
- Crawlers follow robots.txt voluntarily; it is not a security control.
- Google ignores the crawl-delay directive.
Privacy
The file is generated locally.
Frequently asked questions
Does robots.txt hide pages from Google?
It stops crawling, not indexing. Use a noindex tag to keep a page out of results.
Where does the file go?
At the root of your domain, e.g. https://example.com/robots.txt.
Do AI bots obey it?
Major ones like GPTBot, Google-Extended and CCBot say they do, but it is voluntary.
Will blocking a page remove it from Google?
Not necessarily. A blocked page can still be indexed from links. Use a noindex tag and allow crawling so Google can see it.
Do I need a robots.txt at all?
No, but having one avoids 404 errors in logs and is the easiest place to list your sitemap.