No Upload, No Wait
Everything runs on your own device, so there is no queue and no server round-trip.
Upload robots.txt to the root of your site so it is reachable at yoursite.com/robots.txt.
The HN Solutions Robots.txt Generator builds a correct, valid robots.txt file in seconds. Start from a ready-made preset — allow everything, a WordPress-optimised setup, block AI training bots like GPTBot, or block all crawlers — then add your own disallowed paths and your sitemap URL, and copy or download the finished file.
Robots.txt is a plain text file at the root of your website that tells search engine crawlers which parts of the site they may or may not crawl.
In the root directory of your domain, so it loads at yoursite.com/robots.txt. On WordPress, many SEO plugins like Rank Math can save it for you.
Yes. The “Block AI bots” preset adds rules for crawlers like GPTBot, ClaudeBot, Google-Extended and CCBot that collect content for AI training.
Not by itself. It stops crawling, but to keep a page out of search results you should use a noindex meta tag instead.
Yes, completely free with no sign-up and no limits.
See all our free utilities in the SEO tools hub and daily tools hub.
Disallow: / under User-agent: * blocks your entire site. It is the correct setting on a staging server and catastrophic in production — and it reaches production regularly, because staging files get copied across during a launch. Check yours after any migration or redesign.
Blocking CSS and JavaScript. Google renders pages before judging them. If your theme assets are blocked, it sees a broken layout and rates the page accordingly.
Assuming Disallow means private. It asks crawlers not to fetch a URL. It does not hide it, and a disallowed page can still appear in results if other sites link to it. To keep a page out of the index, use a noindex meta tag — and note that the page must be crawlable for Google to see that tag at all.
Robots.txt has become the standard place to state whether AI companies may use your content for training. The major crawlers respect it by convention rather than obligation:
GPTBot — OpenAI trainingClaudeBot — AnthropicGoogle-Extended — Gemini training, separate from GooglebotCCBot — Common Crawl, which feeds many datasetsBlocking Google-Extended does not affect normal Search ranking. Blocking Googlebot very much does — do not confuse them.
The domain root, and nowhere else: yoursite.com/robots.txt. A file in a subfolder is ignored entirely. Subdomains need their own — blog.yoursite.com does not inherit from the main domain.
WordPress serves a virtual robots.txt by default. If you upload a physical file it takes over; if you use Rank Math or Yoast, edit through the plugin so you are not maintaining two versions that disagree.
Every rule is a chance to be wrong. A long robots.txt accumulated over years usually contains lines nobody can explain and at least one that blocks something it should not. Most sites need a handful of rules and a sitemap line.
After changing it, verify at yoursite.com/robots.txt and check Search Console’s robots report, which shows the file Google actually fetched and any parse errors. Pair it with the XML sitemap generator to point crawlers at what you do want indexed.
Paste the file into the Robots.txt Tester to confirm each rule behaves the way you expect.
There is a plain text file at the root of your website that every search engine reads before it looks at anything else. Written correctly, it keeps crawlers focused on the pages that matter. Written wrongly — sometimes by a single character — it can wipe your entire site from Google. In 2023, a misplaced Disallow: / pushed a well-known brand’s whole domain out of search for days; it happens to someone every week.
And robots.txt has taken on a second life: it is now the standard place to tell AI companies whether they may harvest your content for model training. This guide explains how the file works line by line, the classic mistakes, the AI-bot question, the best generators, and the correct setup for WordPress and most sites.
Robots.txt implements the Robots Exclusion Protocol — a set of polite instructions to crawlers, served at yoursite.com/robots.txt. Its directives:
* = everyone, Googlebot, GPTBot…).Disallow: /admin/ blocks a folder; Disallow: / blocks everything; Disallow: (empty) blocks nothing.admin-ajax.php inside blocked /wp-admin/.The critical nuance: robots.txt controls crawling, not indexing. A blocked page can still appear in results (as a bare URL) if other sites link to it. To keep a page out of Google, use a noindex meta tag — set it in seconds with our meta tag generator — and do not block the page in robots.txt, or Google can never see the noindex. Getting this backwards is the most common advanced mistake in SEO.


Disallow: / under User-agent: * — often a staging-site setting that ships to production. Check yours today./Admin/ does not block /admin/.AI companies crawl the web for training data, and most now respect robots.txt opt-outs. The main user-agents: GPTBot and ChatGPT-User (OpenAI), ClaudeBot and anthropic-ai (Anthropic), Google-Extended (Gemini training — separate from Googlebot, so blocking it does not affect search), CCBot (Common Crawl, feeding many models), PerplexityBot, Bytespider (ByteDance), Amazonbot, Applebot-Extended and meta-externalagent.
Should you block them? Trade-offs, honestly: blocking asserts control over your content and keeps it out of training sets; allowing may earn citations in AI answers, which is becoming a real traffic source. Publishers increasingly block training bots (GPTBot, Google-Extended, CCBot) while leaving search-adjacent bots alone. Whatever you choose, our generator’s “Block AI bots” preset writes the current list correctly in one click.
yoursite.com/robots.txt, then check Search Console’s robots report for errors.Pro tips: never block /wp-content/ wholesale — your images and CSS live there; keep the file lean — every rule is a chance to be wrong; and audit it whenever you migrate hosts or launch a redesign, which is exactly when killer slashes sneak in.
Reputable ones do — Google, Bing, the major AI crawlers. Scrapers and bad actors ignore it; it is a protocol, not a firewall.
No. It only opts you out of Gemini training data. Googlebot — the search crawler — is unaffected.
The domain root: https://yoursite.com/robots.txt. Subdomains need their own file.
Without it, everything crawlable gets crawled — fine for tiny sites. You still want one for the sitemap line and the AI policy alone.
Robots.txt is twenty lines that steer everything crawlers do on your site — worth five careful minutes. Generate yours with the free robots.txt generator, pair it with a proper XML sitemap, and control the index page-by-page with the meta tag generator — all free in our SEO tools hub.
Free tools for this
Built here, run in your browser, no sign-up.
Everything runs on your own device, so there is no queue and no server round-trip.
What you enter never leaves your browser. We could not see it even if we wanted to.
No account, no email, no usage limit. Open it and use it.
Any modern browser on desktop, tablet or phone. Nothing to install.
The ones people usually reach for in the same sitting. All free, all in your browser.