robots.txt generator
Choose which paths to block, add your sitemap, and copy a correct robots.txt file.
About this tool
What robots.txt does. It asks well-behaved crawlers, including search engines, not to visit certain paths. It sits at the top of your site, for example example.com/robots.txt.
It is not security. The file is public and does not stop anyone opening those addresses. Protect private areas with a login.
Blocking is not the same as hiding from search. A blocked page can still appear in results if other sites link to it. Use a noindex tag on pages you want kept out.
Be careful. A rule that blocks your whole site (Disallow: /) can remove it from search. Test after you publish.
Frequently asked questions
Do I need a robots.txt file?
Not always. A site with nothing to block can work without one, but adding your sitemap address there is helpful.
Can I block only one crawler?
Yes. Enter that crawler's name as the user-agent, for example Googlebot.
Will it stop bad bots?
No. Only crawlers that follow the rules obey it.
Is my data sent anywhere?
No. Everything is made in your browser.
More free tools
Need help with Content & Website Support?
Need help with technical SEO basics for your website?
Request a quote