Rankite
ServicesResultsToolsTeamAboutBlogCareersContactFree SEO Audit
Free tool

Robots.txt Generator: Build a Valid robots.txt in Seconds

Pick a crawl policy, tick the paths you want to block, add your sitemap, and copy a clean, standards-correct robots.txt. Everything runs in your browser, nothing is uploaded.

Home / Tools / Robots.txt Generator

Your robots.txt


 

This file tells crawlers what they may request. It controls crawling, not indexing. To keep a page out of Google, use a noindex tag or password instead.

Built by Rankite, the SEO team behind Swordfish AI's +400% revenue and Zluri's +45% organic growth. See the case studies

A robots.txt file is a plain text file in the root of your domain that tells crawlers which parts of your site they are allowed to request. When a well-behaved bot like Googlebot visits, it reads this file first and obeys the Allow and Disallow rules it finds. The file always starts with a User-agent line, and the generator above keeps that line in place for you so the output stays valid.

Crawling is not indexing

The single most important thing to understand is that robots.txt controls crawling, not indexing. Blocking a URL stops Google from reading the page, but if other sites link to it, Google can still list the URL in search results without a description. To actually keep a page out of the index, let it be crawled and add a noindex meta tag, or protect it with a password. Disallow and noindex solve different problems.

Common mistakes to avoid

MistakeWhy it hurtsBetter approach
Blocking CSS and JavaScriptGoogle renders pages like a browser. Blocking assets makes pages look broken to the crawler and can lower rankings.Leave /wp-content/ and script folders open.
Using Disallow to hide a private pageThe URL can still appear in results, and the file is public for anyone to read.Use noindex or a login wall.
Blocking your whole site by accidentDisallow: / on a live site removes you from search entirely.Only choose Block all on staging sites.
Forgetting the sitemap lineCrawlers find new pages slower without a sitemap pointer.Add your full sitemap URL.

Keep the file short and deliberate. Block low-value paths like internal search results, cart and checkout pages, and faceted query strings, and leave everything that should rank fully open. If you want a second pair of eyes on what your site is blocking and whether it is costing you traffic, request a free SEO audit and we will check your robots rules against your competitors.

Related articles

FAQ

Robots.txt Generator: questions, answered

Where does the robots.txt file go?
It must live at the root of your domain, reachable at https://yourdomain.com/robots.txt. Crawlers only look there. A robots.txt placed in a subfolder is ignored, and each subdomain needs its own file.
Does robots.txt stop a page from being indexed?
No. It only asks crawlers not to fetch the page. If other sites link to that URL, Google can still show it in results without a snippet. To keep a page out of the index, allow crawling and use a noindex meta tag, or put the page behind a login.
Should I block /wp-admin/ in WordPress?
Blocking /wp-admin/ is common and harmless, but leave /wp-admin/admin-ajax.php reachable because some themes and plugins rely on it to render content. Never block /wp-content/ or your CSS and JavaScript, since Google needs those to render your pages correctly.
What does Crawl-delay do and should I use it?
Crawl-delay asks a bot to wait the given number of seconds between requests, which can ease load on a small server. Google ignores it and uses its own crawl rate controls, but Bing and some other crawlers respect it. Only add it if your server is genuinely strained.
Is the wildcard /*?* rule safe to use?
It blocks any URL containing a query string, which is useful for trimming duplicate faceted or tracking URLs. Use it with care: if important pages rely on query parameters, such as some filtered category pages, this rule would block them too. Review your URLs before enabling it.

More free tools

Let's grow

Ready to own page one?

Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.

Book your free audit Explore services
Get in touch

Tell us about your project

Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.

Or copy our email and write to us directly: contact@rankite.com