How to use Robots.txt Generator
Build a robots.txt file for crawler user agents, path rules and an optional sitemap address. Use it to express crawling preferences for a site you control.
- Enter User agents and write each allowed or disallowed path on its own line, starting it with a slash.
- Add an absolute Sitemap URL if relevant.
- Review the complete file before placing it at the site’s root.
Example use
Create a general crawler group for a public site and add its production sitemap reference. Check allowed public assets and crawl paths before publishing new rules.
Output and compatibility
A robots.txt file controls how compliant crawlers request URLs. It is not a privacy gate, and blocking a URL does not reliably keep it out of search results. The generated configuration represents one group of directives with the user agents you provide.
Troubleshooting
If expected pages disappear from crawler access, inspect any broad path rule and the file served at the exact origin. Test host and protocol variants as needed. Use appropriate access controls for private data.
Use XML Sitemap Generator for your list of public canonical URLs.
Frequently asked questions
Where should I put it?
Serve it as /robots.txt at the origin root.
Can I hide private records with this file?
Require authorization for private information. Robots directives are publicly readable and are not access controls.
Will generating it submit my sitemap?
The optional line points to a sitemap. Submission to webmaster tools is a separate action.