Avexora Tools

Robots.txt Generator

Free robots.txt generator. Create a valid robots.txt file — allow or block all crawlers, add custom disallow paths, crawl-delay and a sitemap URL.

About the Robots.txt Generator

A robots.txt generator that produces a valid robots.txt for the three common situations — allow all crawlers, block all crawlers, or block specific paths — with an optional crawl-delay and sitemap URL.

robots.txt is a plain-text file at the root of your domain — example.com/robots.txt — that tells search engine crawlers which parts of the site they may fetch. It's the first thing Googlebot requests when it visits, and because a single misplaced character can deindex an entire site, it deserves to be generated carefully rather than hand-typed from memory. This generator produces a valid file for the three situations that cover almost every site.

Allow all is the right choice for most public sites: it emits an empty Disallow directive, the standard way to say 'crawl everything'. Block all (Disallow: /) shuts crawlers out entirely — correct for staging servers, pre-launch sites and internal tools, and catastrophic if it ever ships to production, which is exactly the accident this generator helps you avoid by making the two modes explicit. Custom mode blocks only the paths you list, one per line — admin panels, cart and checkout pages, internal search results and other pages that waste crawl budget without deserving to rank. Paths are normalized to start with a slash. You can also add a Crawl-delay for aggressive bots and a Sitemap line pointing crawlers at your sitemap.xml — the one line every robots.txt should carry.

One misconception is worth clearing up: robots.txt controls crawling, not privacy. A disallowed URL can still appear in Google's index if other sites link to it, and the file itself is public — listing /secret-admin-panel in it advertises the path to anyone curious. Use noindex tags to keep pages out of results, and real authentication to keep people out of pages.

How to use the Robots.txt Generator

  1. Choose the crawler policy: allow all, block all, or custom (block specific paths).
  2. In custom mode, enter the paths to block — one per line (e.g. /admin, /cart, /search).
  3. Optionally add a sitemap URL and a crawl-delay in seconds.
  4. Click Generate robots.txt to build the file.
  5. Upload it to the root of the domain so it's reachable at yourdomain.com/robots.txt.

Worked example

Choose 'Custom', enter '/admin' and '/cart' to block them, and add your sitemap URL to generate a perfectly formatted, error-free robots.txt file.

Frequently asked questions

Where exactly should I upload this robots.txt file?
It must live at the very root of your domain, so it can be accessed directly at https://yourdomain.com/robots.txt. If you place it in a subfolder, search engine crawlers will completely ignore it.
If I 'Disallow' a page, will that remove it from Google search?
No, it won't! Disallow stops crawling, but not indexing. If another website links to your blocked page, Google can still index the URL (though it will show up without a description). If you want to hide a page from search results, you need to use a 'noindex' meta tag instead.
What does the Crawl-delay setting actually do?
It politely asks bots to wait a certain number of seconds between each request, which can prevent aggressive crawlers from crashing small servers. Keep in mind that while Bing and Yandex respect this, Googlebot ignores it entirely (Google prefers you manage their crawl rate via Google Search Console).
Is it really necessary to include my Sitemap URL?
Yes, it's highly recommended! Adding the Sitemap line is the universally accepted way to point every single search engine crawler directly to your sitemap, saving you from having to manually submit it to each search engine individually.
Can I use robots.txt to hide sensitive pages like my admin panel?
Never use robots.txt for security. The file is completely public, which means anyone can read it to see exactly which 'secret' paths you're trying to hide! Always use actual password authentication to protect sensitive areas of your site.

More from Avexora

All Avexora products →

Business software from the team behind these free tools.

Get one practical business tip every week

Tools, templates and tactics for running your business — free, no spam.

Related tools

More marketing & seo tools