Control crawling without mistaking it for security
Robots.txt gives cooperating crawlers instructions about which URL paths to request. It is public and is not a password system or a reliable way to remove an already known URL from search results. Use authentication for private content and appropriate indexing controls for public pages.
How to use this tool
- Choose the user agent and enter the paths that should be allowed or disallowed. Match the path structure of your own site.
- Add your sitemap URL if available. Review the rules carefully so that CSS, JavaScript, and important public pages remain crawlable.
- Download the file as robots.txt and place it at the root of the relevant hostname. Check its served contents after publishing.
The asterisk targets crawlers that follow the general rule group. The disallow line asks them not to crawl the preview path. It does not prevent a person from opening that URL, and the file itself reveals the path publicly.
Read the reference documentation ↗