Robots.txt Generator
Create a robots.txt file for your website. Manage crawler access, configure allow and disallow rules, add sitemap URLs and download your file instantly.
Access Rules
Use Allow to permit access or Disallow to restrict access to a path. Use / to represent the root directory.
# Your robots.txt file will appear here. # Configure your rules and click Generate robots.txt.
What is a robots.txt file?
A robots.txt file tells search engine crawlers which parts of your website they are allowed or requested not to crawl. It is usually located in the root directory of your website.
Common robots.txt directives
- User-agent: Specifies which crawler the rule applies to.
- Disallow: Requests crawlers not to crawl a specific path.
- Allow: Permits crawling of a path, including within a restricted directory.
- Sitemap: Provides the location of your sitemap XML file.
- Crawl-delay: Requests a delay between crawler requests on crawlers that support it.
Where should robots.txt be placed?
Upload the generated file to the root directory of your website.
For example, if your website is
https://example.com,
your robots.txt file should generally be accessible at
https://example.com/robots.txt.
Does robots.txt protect private pages?
No. Robots.txt is not an access control system. It does not block users or guarantee that URLs will not appear in search results. Use proper authentication, permissions and server-side access controls to protect private information.