SEO tools

Robots.txt Generator

Build a valid robots.txt without looking up the syntax: pick how open the site should be, add the paths crawlers should leave alone, name your sitemap, and copy or download the result.

Publish to Droply turns your result into a live HTTPS link in seconds, with no build step. The file is published through our standard, secured upload pipeline; your data only leaves the browser when you choose to publish.

What robots.txt controls, and what it does not

A robots.txt file tells well-behaved crawlers which paths they may fetch. That is the whole of it. It is a request, honoured by the search engines that matter and ignored entirely by anything that does not want to honour it, and the file itself is public: anyone can read yours by adding /robots.txt to your domain. Listing a secret directory in it is a way of publishing the location of that directory.

The distinction that catches people out is between crawling and indexing. Disallow stops a crawler fetching a page; it does not stop that page appearing in results. If other sites link to a disallowed URL, a search engine can list it with no description, because it was told not to look. To keep a page out of results, let it be crawled and serve a noindex robots meta tag or header on it. Disallowing it instead guarantees the engine never sees the instruction.

How the rules are actually matched

A crawler picks exactly one User-agent group: the most specific one that names it, or the * group if none does. It does not combine them. So a group for a named bot completely replaces the general rules for that bot, which means every rule it still needs has to be repeated inside it. This is the single most common mistake in a hand-written robots.txt.

Within a group, paths are prefix matches from the root, * stands for any run of characters and $ anchors the end. Disallow: /admin therefore blocks /admin, /admin/ and also /administration, which is usually not what was meant; Disallow: /admin/ is the safer form. An empty Disallow: means allow everything, and Disallow: / means block the whole site, which are one character apart.

The sitemap line, and where the file goes

A Sitemap: line is independent of the user-agent groups and applies to the whole file, so it belongs at the end. Its value must be a full absolute URL including the scheme and host, because a crawler that finds it may not be the one that fetched your robots.txt. It is the cheapest way to make a sitemap discoverable without submitting it anywhere.

The file only works at the root of a host: https://example.com/robots.txt, never in a subfolder, and a subdomain needs its own. It must be served as plain text. Test it before you rely on it, because a file that accidentally disallows everything looks almost identical to one that allows everything, and the difference is measured in weeks of lost traffic.

How to use it

  1. Pick how open the site is

    Start from allow everything, block everything, or allow with exceptions, and the base rules are written for you.

  2. Add your rules

    List the paths crawlers should leave alone, add a group for a specific bot if you need one, and name your sitemap.

  3. Copy, download or publish

    Copy the file, download it as robots.txt, or publish it to a live link to see exactly what a crawler will read.

Frequently asked questions

Is the robots.txt generator free?
Yes, free with no sign-up, and the file is generated in your browser rather than on a server.
Where does the file have to go?
At the root of the host, as /robots.txt. It does not work from a subfolder, and every subdomain needs its own copy.
Does Disallow hide a page from search results?
No. It stops a crawler fetching the page, but a disallowed URL can still be listed with no description if other pages link to it. Use a noindex meta tag on a page that is allowed to be crawled.
Can I block one crawler and allow the rest?
Yes, by adding a group that names it. Remember that a crawler obeys only the most specific group that matches it, so any rule it still needs has to be repeated in that group.
Do I need a Sitemap line?
It is optional and worth adding. It must be an absolute URL, and it applies to the whole file rather than to one user-agent group.
How do I test the result?
Click Publish to put the generated file on a live HTTPS link and open it, so you see exactly the bytes a crawler would read before you deploy it to your own host.