What the Robots.txt Generator does
Robots.txt tells well-behaved crawlers which parts of your site they may request. This generator lets you add groups for specific crawlers, list the paths to disallow or allow, and add your sitemap URLs, then validates the paths and produces the file.
Brief guidance beside the tool explains what robots.txt cannot do, to prevent common mistakes.
How to use it
- Choose a user-agent such as * for all crawlers.
- List paths to disallow, one per line, starting with /.
- Add sitemap URLs, then copy or download the file and upload it to your site root.
Practical examples
- Block /admin/ for all crawlers.
- Give Googlebot different rules from other crawlers.
Features
- Multiple user-agent groups
- Path validation
- Sitemap lines
Limitations
- robots.txt is a convention, not security: blocked URLs can still be opened by anyone and may still appear in search results if other sites link to them.
- To keep a page out of search results use a noindex tag or password protection, and do not block it in robots.txt, or crawlers will not see the noindex.
- Wildcard behaviour differs slightly between crawlers.
Privacy
This tool runs entirely in your browser. What you type is not sent to our servers and is discarded when you close or reload the page.
Frequently asked questions
Where does robots.txt go?
At the root of the domain, for example https://example.com/robots.txt.