SEO

Robots.txt Generator

Details

How to use Robots.txt Generator

What the tool does, how to run it, and what to expect from the result.

How to generate a robots.txt file

robots.txt tells well-behaved crawlers which parts of your site not to fetch. Its real purpose is managing crawl budget, keeping bots out of endless faceted URLs, search result pages, and API routes that waste their time and your server's.

The file is generated in your browser. Keep in mind what it cannot do: it does not remove anything from an index, and it does not hide anything, since the file itself is public.

  • Set the user-agent, using an asterisk to apply the rules to every crawler.
  • List the paths to disallow, one per line, starting each with a slash.
  • Add any Allow lines needed to carve an exception out of a broader disallowed path.
  • Add the absolute URL of your sitemap so crawlers can find it.
  • Save the result as robots.txt at the root of your domain, and test it with the robots.txt report in Google Search Console before you rely on it.
Tips

Getting a better result out of Robots.txt Generator

Specific settings and thresholds, not general advice.

  • robots.txt does not keep a page out of Google. It asks crawlers not to fetch the page, and a URL that is never fetched can still be indexed from links elsewhere, showing up as a bare result with no snippet. To remove a page from the index you need a noindex meta tag or header.
  • Blocking a page in robots.txt actively prevents noindex from working. The crawler has to fetch the page to see the noindex directive, and robots.txt tells it not to fetch. Doing both is the classic own-goal: the page stays indexed forever and you cannot work out why.
  • Everything you write here is public. Anyone can read example.com/robots.txt, so a Disallow line pointing at /admin/ or /internal-beta/ is a signpost for exactly the paths you were trying to hide. Never use robots.txt as a security measure.
  • The file only works at the root of a host: example.com/robots.txt. A copy in a subfolder is ignored entirely, and every subdomain needs its own, so blog.example.com does not inherit anything from the main domain.
  • Never block your CSS and JavaScript. Google renders pages to understand them, and a crawler that cannot fetch your stylesheet sees a broken layout and may judge the page as unusable on mobile. This was common advice a decade ago and it is now actively harmful.
Limits

What Robots.txt Generator does not do

The honest boundary, so you do not lose time finding it yourself.

  • It generates a single user-agent group, so you cannot write different rules for Googlebot, Bingbot, and an AI crawler in one file.
  • It does not emit Crawl-delay, which Bing and Yandex honour and Google ignores entirely.
  • It does not validate your patterns, so a typo in a path or a misplaced wildcard produces a file that looks fine and blocks nothing.
  • It cannot express noindex, because noindex is not a robots.txt directive. Google dropped support for the unofficial form in September 2019.
Reference

Terms used on this page

Short, plain-language definitions for the formats and settings above.

At a glance

Who Robots.txt Generator is for

A quick way to understand who this helps, what it solves, and where it connects next.

Best fit

Developers, marketers, and site owners handling on-page SEO.

Ideal for

Generating correct SEO snippets without writing them by hand.

FAQ

Common questions

Short answers for the questions people usually have before trying a utility like this.

Why is my disallowed page still showing up in Google?

Because robots.txt controls crawling, not indexing. If another site links to your page, Google can list the URL in its results without ever fetching it, which is why those entries appear with no description. The fix is the opposite of what people assume: you must allow the crawler to fetch the page, and put a noindex meta tag or an X-Robots-Tag header on it. Once Google has seen the noindex and dropped the page, you can block it in robots.txt if you also want to save crawl budget.

Can I use robots.txt to hide sensitive pages?

No, and attempting it makes things worse. The file is served publicly at a predictable URL, so anyone curious about your site opens it first. Listing a path there is an announcement, not a defence, and it is a well-known reconnaissance step. Anything that must not be seen needs authentication. Anything that must not be indexed needs a noindex tag. robots.txt is a politeness request to well-behaved crawlers and nothing more.

Do all crawlers obey robots.txt?

The major search engines do, and they are consistent about it. Everyone else is a matter of choice, because the file is advisory and there is no enforcement. Scrapers, spam bots, and vulnerability scanners routinely ignore it, and several AI training crawlers have been observed doing so. If a bot is causing you real load, block it at the server or the firewall, since a line in a text file cannot stop anything that has decided not to read it.

Where exactly does the file go?

At the root of every host you want to control, so https://example.com/robots.txt. A file placed in a subdirectory has no effect. Each subdomain is a separate host and needs its own copy, so blocking something on the main domain does nothing for blog.example.com or shop.example.com. The protocol matters too, so the http and https versions of a host are technically separate.

Should I still list my sitemap in robots.txt?

Yes, it costs nothing and it helps crawlers that have not been told about the sitemap any other way. The Sitemap directive takes an absolute URL and can appear anywhere in the file, independent of any user-agent group. It is not a substitute for submitting the sitemap in Search Console and Bing Webmaster Tools, which also gives you an error report, but it means any crawler reading your robots.txt can find it.

Recommendations

You Might Also Like

Nearby tools from the catalog that fit the same job or workflow.

Cleanor app

Do it all on your device

Cleanor puts these tools in one app: compress and convert images, video, and audio, work with PDFs, and scan text right on your device. Plus free up storage and clear inbox clutter with Email Cleaner. Start with a free trial.

  • iPhone
  • Android
  • Macsoon
  • Windowssoon