robots.txt Generator
Create a custom robots.txt file for your own website, defining Allow and Disallow rules for each user-agent and adding your sitemap URL. Includes quick templates for the most common cases. Everything is generated locally in your browser, with no data sent to any server.
How it works
- Choose a quick template (allow everything, block everything, block common paths) as a starting point, or build your rules from scratch.
- Set the user-agent for each block (use * to apply the rule to all crawlers).
- Add Allow or Disallow rules with the corresponding path within each block.
- Add more user-agent blocks if you need different rules for specific crawlers.
- Optionally enter your sitemap URL, then copy or download the resulting robots.txt file.
Use cases
- Block crawlers from accessing administrative or private paths on your website.
- Allow full indexing of a new website while it doesn't yet have sensitive content.
- Set different rules for a specific bot (for example, an AI scraper) versus the rest of the crawlers.
- Declare the location of your sitemap.xml to make crawling and indexing your site easier.