Robots.txt Generator
Create clean, standards-compliant directives for Googlebot, Bingbot, and AI web scrapers. Customize allowed paths and download your ready-to-use file.
Crawler Directives
Generated robots.txt
Public Root FileSave this file in the root directory of your website domain so it is accessible at:https://yourdomain.com/robots.txt
Robots.txt Best Practices
The file must strictly live at the root of your domain (e.g. `https://yourdomain.com/robots.txt`). It cannot be placed in a subdirectory.
Protect your intellectual property by blocking automated training spiders like GPTBot, CCBot, Anthropic, and Google-Extended.
Always include the absolute URL of your XML sitemap at the bottom of the robots.txt file so crawlers can discover your URL inventory.
Frequently Asked Questions
Does robots.txt hide private pages from the public?
No! Robots.txt is a public advisory file. It tells compliant search crawlers what NOT to index. Anyone can read your robots.txt file. For private data, use password protection, authentication, or server-level access control.
What is the difference between Disallow: / and Disallow: ?
`Disallow: /` blocks bots from accessing every single page on the site. An empty `Disallow:` directive instructs bots that they have permission to crawl all pages on the site.