Robots.txt generator
Choose what crawlers may read, and get a robots.txt file you can upload to your site.
What each choice writes
- Everyone else. Allowing writes
User-agent: *andAllow: /. Blocking writesUser-agent: *andDisallow: /, which covers every crawler, so nothing else is written. - Paths. Each path becomes a
Disallow:line in the "everyone else" group. They apply to every crawler that is not named in a group of its own. - AI crawlers. Blocking a group writes one group that lists every crawler name in it, then
Disallow: /. Allowing a group writes nothing, so those crawlers follow the "everyone else" group. - Sitemap. Writes one
Sitemap:line with the address you give.
A crawler obeys only the most specific group that names it. That is why a blocked AI group does not inherit your path list: it is already blocked from everything. An allowed one follows your "everyone else" rules.
What it cannot tell you
- Your current robots.txt. This tool writes a new file from your choices and does not read the one on your site. The robots.txt checker reads it.
- Whether a crawler obeys the file. robots.txt is a request, not a lock, and some crawlers ignore it.
- Whether a page leaves search results. Blocking a page in robots.txt stops crawling and does not remove a page that is already listed. That takes a noindex tag or the removal tool in the search engine's own webmaster tools.
- How the file behaves on your site once it is uploaded. Check it there with the robots.txt checker.
Next
To read a robots.txt that is already live, use the robots.txt checker. For the whole site, run the full website check, or see all free tools.