Generate a robots.txt file for your website. Control search engine crawling with an easy-to-use generator.
Input
Disallow:
Allow:
/Output
1 rule
User-agent: * Allow: /
Need to do this on any website, at scale?
Browzey runs this — and hundreds of other browser tasks — in plain English. No copy-paste, no limit. Install the Chrome extension and try it yourself.
A robots.txt file is a text file that tells search engine crawlers which pages or sections of your website they can or cannot access. It's placed in the root directory of your website and is one of the first files crawlers look for when visiting your site.
Specifies which crawler the rules apply to. Use * for all crawlers, or specify individual bots like Googlebot or Bingbot.
Tells crawlers not to access specific paths. For example, Disallow: /admin/ blocks the admin directory.
Overrides a disallow directive for specific paths. Useful for allowing a subdirectory within a blocked directory.
Specifies the location of your XML sitemap. This helps search engines discover all your pages.
User-agent: * Allow: /
User-agent: * Disallow: /
User-agent: * Disallow: /private/ Disallow: /admin/ Disallow: /temp/
It's important to understand that robots.txt is not a security mechanism. Malicious bots can ignore it, and the blocked URLs are visible in the file itself. For truly private content, use authentication or password protection.
What is robots.txt?
robots.txt is a file that tells search engine crawlers which pages or sections of your site should not be crawled or indexed.
Does robots.txt block pages from Google?
Robots.txt only prevents crawling, not indexing. Pages can still appear in search results if linked from other sites. Use noindex meta tags to prevent indexing.
What is the User-agent directive?
User-agent specifies which crawler the rules apply to. Use * for all crawlers, or specific names like Googlebot or Bingbot for targeted rules.
Should I block CSS and JavaScript files?
No, Google recommends allowing access to CSS and JS files so it can properly render and understand your pages for better indexing.