ROBOTS.TXT // crawl control

robots.txt generator

A robots.txt generator that writes valid syntax for you — set disallow and allow rules, drop in your sitemap, then copy the file and test it on your site. No memorizing directives.

$ runs in your browser · nothing stored · no signup

robots.txt Generator — runs in your browser

// rules

// output

 

robots.txt controls crawling, not indexing

The single most common mistake: people Disallow a page to keep it out of Google. That's backwards. Disallow stops crawling — but a disallowed URL can still get indexed (without a snippet) if it's linked elsewhere. To keep a page out of the index, let it be crawled and add a noindex meta tag. robots.txt is for crawl budget and access, not de-indexing.

The directives, in plain English

A robots.txt file is just a list of groups. Each group names a User-agent and then gives it rules. Three directives do almost all the work:

  • Disallow — blocks a path from being crawled. Disallow: /admin keeps bots out of everything under /admin. This is the "robots txt disallow" rule everyone looks for.
  • Allow — carves an exception out of a broader Disallow. Useful when you block a folder but want one file inside it crawled.
  • Sitemap — points crawlers at your sitemap so they discover your URLs faster. Add a Sitemap: line with the full URL; you can list more than one.

Two patterns come up constantly:

  • Allow all — let every bot crawl everything. That's User-agent: * followed by Disallow: (empty). An empty Disallow means "nothing is off-limits." A blank or missing robots.txt does the same thing.
  • Disallow all — block every bot from the whole site. That's User-agent: * followed by Disallow: /. The single slash matters — it means "the entire site." Use it on staging, never by accident on production.

WordPress robots.txt

WordPress serves a virtual robots.txt by default — there's no physical file in your folder, WordPress generates one on the fly at /robots.txt. It usually disallows /wp-admin/ and allows /wp-admin/admin-ajax.php. If you upload a real robots.txt to the site root, that physical file takes over and the virtual one stops. SEO plugins like Yoast or Rank Math let you edit the virtual version from the dashboard. Either way, build the rules here, then paste them in.

Generator vs. validator vs. tester

This is a robots.txt generator — it writes valid syntax so you don't fat-finger a directive. It is not a live validator. The workflow: build the file here, upload it to your root, then test it against real URLs. Google Search Console has a robots.txt report that flags syntax errors and shows whether a given URL is blocked. For your own quick checks, open /robots.txt on the live domain and confirm it serves the rules you expect. A generator that produces clean syntax plus a quick test pass beats hand-editing every time.

Blocking AI crawlers

Major AI crawlers honor robots.txt. If you don't want your content training models or feeding AI answers, the AI-bot toggle adds a group disallowing GPTBot, ClaudeBot, PerplexityBot, Google-Extended, CCBot and more. Want to check what your current robots.txt allows? Run it through the AI-bot access checker. While you're tidying up crawl signals, the meta & OG checker and SERP preview cover the on-page tags that decide how those crawled pages actually show up.

Getting crawl rules, indexing, and the technical layer right across a large site is its own job. That's the programmatic SEO and fractional SEO work we do — or start with a free SEO audit if you want a second set of eyes first.

// use them together

The rest of the toolbox

Every tool does one job. Run them together and you cover AI readiness, on-page signals and the business case — the whole loop, in your browser, no signup.

Planning

Make the business case before you spend.

// questions

FAQ

What is robots.txt? +
A plain text file at the root of your site that tells crawlers which parts they may or may not request. It uses simple directives — User-agent, Disallow, Allow, Sitemap. It controls crawling, not indexing, so it is a traffic-direction tool for bots, not a way to hide pages from search.
What should be in a robots.txt file? +
At minimum, a User-agent line and your crawl rules. Most sites want User-agent: * (all bots), an Allow or Disallow for the paths that matter, and a Sitemap: line pointing at sitemap.xml. Disallow private or low-value paths like /admin or /cart. Do not block CSS or JS — Google needs those to render your pages.
When should you use a robots.txt file? +
Use one when you want to keep crawlers out of certain paths (admin, search results, faceted URLs, staging) or save crawl budget on a large site. If you have nothing to disallow, you can still ship an empty-but-valid file with just your Sitemap line. To keep a page out of Google entirely, use a noindex meta tag, not robots.txt.
How do I find my robots.txt? +
Open https://yourdomain.com/robots.txt in a browser. It always lives at the root — never in a subfolder. If you get a 404, you do not have one yet. Generate it here, upload it to the root, then reload that URL to confirm it serves.
Does robots.txt control crawling or indexing? +
Crawling. A Disallow stops a bot from fetching the page, but a disallowed URL can still be indexed (without a snippet) if other pages link to it. To remove a page from the index, let it be crawled and add a noindex meta tag — do not Disallow it.
Can robots.txt block AI crawlers? +
Yes — bots like GPTBot, ClaudeBot, PerplexityBot, Google-Extended and CCBot respect robots.txt. This tool has a one-click preset to disallow them all if you do not want your content used for AI training or answers.

// your move

Want this done
for you?

Founder-led AI SEO — brand signals, citations, real organic growth. We’ll tell you straight whether it fits.

// or send a message

Tell us
about your site.

Drop your URL and we’ll give you an honest read — no pitch, no obligation. Prefer to talk live? Book a call →

// 30 min · intro, founder-to-founder

Book a call