Roborank

Robots.txt Generator & Validator

Write a robots.txt with the rules you want, or point the validator at a live site to see the rules it has, the mistakes in them, and whether a given path is blocked.

Your robots.txt

# Pick a preset or add a rule to see your robots.txt

The generator runs in your browser. The validator fetches the live robots.txt from the site you name.

Robots.txt is one file. The crawl problems are usually elsewhere.

Roborank crawls your site the way Google does, finds what is blocked, broken or wasting crawl budget, and fixes it.

See how Roborank works

What robots.txt does, and what it does not

Robots.txt controls crawling. It tells well-behaved crawlers which paths they should not request. That is all it does, and the gap between that and what people expect it to do causes most of the damage.

It does not keep a page out of search results. A URL that is blocked in robots.txt can still be indexed if other pages link to it, and it shows up as a bare URL with no description, which is worse than either indexing it properly or removing it. To keep a page out of the index you need a noindex tag on the page, which means the crawler has to be allowed to fetch the page to see it.

It is also not a security control. The file is public, at a predictable address, and listing your admin paths in it is the same as publishing a map of them.

What the validator checks

Testing a specific path

The path tester applies the same longest-match rule real crawlers use: among the rules that match a path, the one with the longest pattern wins, and Allow beats Disallow on a tie. That is why Disallow: /wp-admin/ followed by Allow: /wp-admin/admin-ajax.php works, and it is worth checking rather than assuming, because the interaction between wildcards and anchors is where people get surprised.

Blocking AI crawlers

Robots.txt is currently the main lever for AI training crawlers. The preset in the generator blocks GPTBot, CCBot, Google-Extended and Bytespider while leaving search crawlers alone, which is the split most sites want.

Worth understanding before you use it: Google-Extended controls training data for Gemini, not whether your pages appear in AI Overviews, which is governed by ordinary Googlebot access. And blocking the assistant crawlers means those assistants cannot cite you either. For most sites that is a real cost, since being quoted by an assistant is becoming a traffic source in its own right. Compliance is also voluntary, so this keeps out the crawlers that respect the file and nothing else.

Where the file has to live

At the root of the host, always: https://example.com/robots.txt. Not in a subfolder, not on a different subdomain. Each subdomain needs its own, so shop.example.com and blog.example.com are separate files that do not inherit anything from the main site. Serve it as text/plain, and keep it under 500KB, because Google stops reading there.

Frequently asked questions

Does robots.txt stop a page from appearing in Google?

No. It stops the page being crawled, but a blocked URL that other sites link to can still be indexed, showing as a bare URL with no description. To keep a page out of the index, allow crawling and use a noindex tag on the page itself.

Where does robots.txt go?

In the root of the host, served at yoursite.com/robots.txt as text/plain. Subdomains need their own file. A robots.txt in a subfolder is ignored.

What does Disallow: / do?

It blocks the entire site for the crawlers in that group. Under User-agent: * on a live site, it removes the site from search over the following weeks. It is the single most damaging line you can leave in the file by accident.

Should I block wp-admin in WordPress?

Blocking /wp-admin/ while allowing /wp-admin/admin-ajax.php is the standard setup and it is what WordPress ships by default. It keeps crawlers out of the dashboard without breaking the AJAX endpoint that some front-end features depend on.

Can I block ChatGPT and other AI crawlers with robots.txt?

You can block the ones that honour it, including GPTBot, ClaudeBot, CCBot, Google-Extended and PerplexityBot. Compliance is voluntary, so it works on the crawlers that respect the file and no others. Blocking them also means those assistants cannot cite your pages.

Does Google respect Crawl-delay?

No. Google ignores it entirely and you set the crawl rate in Search Console instead. Bing and Yandex do respect it, so it is not useless, just not for Google.

What happens if my robots.txt returns a 500 error?

Google treats a persistent 5xx as a signal to stop crawling the site, which is far worse than having no robots.txt at all. A 404 is safe and simply means everything is allowed.

Is this robots.txt generator free?

Yes. The generator runs entirely in your browser. The validator fetches the live file from the site you enter, with a daily limit per visitor so the tool stays available.

Other free tools

See all 12 free SEO tools