Robots.txt Generator
Robots.txt Generator: Create a Robots.txt File for Your Website
Use the form above to build a robots.txt file for your website. Choose whether robots are allowed or refused by default, set an optional crawl delay, add your sitemap link, set rules for individual search robots, and list the directories you want to restrict. The tool creates the text for you to copy into a file named robots.txt.
Options in This Tool
- Default - All Robots are: allow or refuse all robots by default. For a normal public website, choose Allowed.
- Crawl-Delay: asks robots to wait between requests. Some search engines may follow it, but Google ignores the crawl-delay rule.
- Sitemap: an optional link to your XML sitemap. Leave it blank if you do not have one.
- Search Robots: choose Same as Default, Allowed, or Refused for each listed robot. Some robots in the list are old and rarely used today.
- Restricted Directories: folders you do not want robots to crawl. Enter each path relative to your root with a trailing slash, for example /admin/.
How to Use the Generator
- Choose the default setting for all robots.
- Add your sitemap link and any restricted directories.
- Copy the generated text shown by the tool.
- Save it in a plain text file named
robots.txt.
- Upload it to the root folder of your website, then open
yourdomain.com/robots.txt in a browser to check it.
Important Things to Know
- A rule that refuses all robots from your whole site (
Disallow: /) will hide your site from search engines. Use it only on purpose.
- Robots.txt is public and is not a security tool. Do not use it to hide private files. Protect them with a password instead.
- Blocking a page in robots.txt does not remove it from search results. To keep a page out of results, use a noindex tag.
- Do not block CSS or JavaScript files that your pages need to display properly.
Frequently Asked Questions
What does a robots.txt file do?
It tells search engine robots which parts of your website they may crawl.
Where do I put the file?
In the root folder of your website, usually public_html, so it opens at yourdomain.com/robots.txt.
Is this tool free?
Yes, it is free to use.