←

Robots.txt Generator 100% Free

About this tool

Robots.txt Generator creates a robots.txt file that tells search engine crawlers which parts of your website they may visit. Choose a mode, add your rules, and download the finished file.

Modes

Allow all crawlers for a normal website, block everything for a staging or test site, or write custom rules. For custom rules, pick all crawlers, Googlebot or Bingbot, then list the folders to disallow and any paths to allow. Add your sitemap address so crawlers can find it.

How to use the file

Save it as robots.txt and upload it to the root folder of your website, so it opens at yoursite.com/robots.txt. Test it in Google Search Console before you rely on it.

Important to know

Robots.txt asks crawlers not to visit a page, but it does not hide the page or remove it from search results. To keep a page out of search, use a noindex tag. Never use robots.txt to protect private files. Do not block your CSS or JavaScript files, because search engines need them to understand your pages. Google ignores the crawl-delay line, although some other search engines follow it.

Questions

Where do I put robots.txt? In the top folder of your site, for example public_html.

What does Disallow: / do? It blocks the whole site for the chosen crawler, so use it only on sites that are not live.

Is it free? Yes. It is free and runs in your browser.