robots.txt Generator
Build a robots.txt file with presets for WordPress, allow-all and block-all.
Runs entirely in your browser. Nothing you enter is uploaded.
How to use
- Pick a preset to start from.
- Add or edit the paths you want to block.
- Add your sitemap address.
- Download robots.txt and upload it to the root of your site.
Example
The WordPress preset blocks /wp-admin/ but allows admin-ajax.php, which many themes and plugins need.
About this tool
robots.txt tells well-behaved crawlers which parts of a site not to crawl. It is not a security tool: blocked URLs can still appear in search results if other pages link to them, and the file itself is public. Use noindex or a password for private pages.
Frequently asked questions
Does robots.txt hide pages from Google?
Not reliably. It stops crawling, not indexing. Use a noindex tag or password protection for private pages.
Where does the file go?
At the root of your domain, so it loads at https://your-site/robots.txt.
Should I block AI crawlers?
That is your choice. The option adds rules for several known AI training crawlers. Well-behaved bots respect it, others may not.