About robots.txt
A robots.txt generator builds the robots.txt file that tells search-engine crawlers which parts of your site they may or may not crawl. Choose which user-agents to target, which paths to allow or disallow, and add your sitemap URL — then copy the file to your site root. Correct robots rules help search engines crawl your important pages efficiently. It runs in your browser.
How Robots.txt works
How to create a robots.txt
- Choose the user-agent (all crawlers, or a specific one).
- Add the paths to allow or disallow, and your sitemap URL.
- Copy the generated file and upload it to your site root as
/robots.txt.
What robots.txt does
It guides crawlers with Allow and Disallow rules per User-agent, and points them to your Sitemap. It is a request, not a security control — do not use it to hide private data.
Common rules
Allow everything, block admin or staging paths, or block all crawlers on a private site. Always include your sitemap URL so search engines find your pages.
Common uses
- Control which pages crawlers can access
- Block admin, cart or staging paths
- Point search engines to your sitemap
- Allow all crawlers on a public site
- Disallow all crawlers on a private site
- Set rules for a specific bot
- Avoid wasting crawl budget
- Generate a valid robots.txt fast