Generate a robots.txt in under a minute.

Choose what crawlers can reach, block the AI crawlers you don't want, add your sitemap, and download a valid robots.txt file. Free, no sign-up.

CMS presetsAI crawler controlsSitemap lineDownload the file

Default for all crawlers

Platform preset

Block specific crawlers

AI training crawlers

AI search crawlers

AI user-triggered fetchers

SEO tool crawlers

Search engines

Google ignores Crawl-delay. Bing and some other crawlers read it.

robots.txt
# robots.txt generated with the SEOLadders Robots.txt Generator

User-agent: *
Disallow:

Sitemap: https://example.com/sitemap.xml

Upload it to the root of your site, e.g. example.com/robots.txt. Runs in your browser.

Why use it

A small file that decides what gets crawled.

Every well-behaved crawler reads robots.txt before anything else on your site. A clear one keeps crawlers out of pages that waste their time and points them at your sitemap.

Valid syntax, every time

One stray character can block a whole site. The generator writes standard User-agent, Allow, Disallow and Sitemap lines in the format Google documents.

Control AI crawlers

Block the crawlers that collect content for AI training, such as GPTBot and ClaudeBot, while keeping the ones that put your pages in AI search answers.

Presets for common setups

Start from a WordPress or online store preset instead of a blank file, then add your own paths and exceptions.

How it works

Pick your rules, copy the file.

The file rebuilds as you change each option.

  1. 1

    Set the default

    Allow all crawlers, or block everything for a staging site. Then choose a platform preset if one fits.

  2. 2

    Add your rules

    List paths to block and exceptions to allow, tick any crawlers to block, and add your sitemap URL.

  3. 3

    Upload it

    Download robots.txt and put it at the root of your domain, then test it with the Robots.txt Tester.

Guide

How robots.txt actually works.

Robots.txt is simple to write and easy to get wrong. This is what each line does, what it can't do, and how to handle AI crawlers.

What is a robots.txt file?

Robots.txt is a plain text file at the root of a website (example.com/robots.txt) that tells crawlers which URLs they may request. It follows the Robots Exclusion Protocol, standardised as RFC 9309 in 2022.

It's a request, not a lock. Google, Bing and the major AI companies say their crawlers respect it, but nothing forces a crawler to. Never rely on robots.txt to hide private content. Use a login or a server-side block for that.

Robots.txt syntax explained

A file is made of groups. Each group starts with one or more User-agent lines and lists the rules for those crawlers.

User-agent
Which crawler the group applies to. * means every crawler without a more specific group of its own.
Disallow
A path the crawler shouldn't request. Disallow: / blocks the whole site. An empty Disallow: blocks nothing.
Allow
An exception inside a blocked path. When an Allow and a Disallow both match, the longer, more specific rule wins.
Sitemap
The full URL of your XML sitemap. It can appear anywhere in the file and applies to every crawler.
* and $
* matches any run of characters and $ marks the end of a URL, so Disallow: /*.pdf$ blocks every PDF.

Robots.txt blocks crawling, not indexing

This is the most common misunderstanding. A URL blocked in robots.txt can still appear in Google if other pages link to it. Google just won't know what's on it, so the result shows up with no description.

To keep a page out of search results, let it be crawled and add a noindex meta tag or X-Robots-Tag header instead. If you block the page in robots.txt, Google can't see the noindex, and the page can stay indexed.

How to block AI crawlers in robots.txt

AI companies run several crawlers with different jobs, and you can treat them differently. Training crawlers collect content to train models. Search crawlers index pages so an assistant can cite them in answers. User-triggered fetchers load a page when someone asks the assistant to.

If you want your content kept out of model training but still want to be cited in ChatGPT, Claude or Perplexity answers, block the training crawlers and leave the search ones open. The "Block AI training, keep AI search" button does exactly that.

Training
GPTBot (OpenAI), ClaudeBot (Anthropic), CCBot (Common Crawl), Google-Extended, Applebot-Extended, Bytespider, meta-externalagent.
AI search
OAI-SearchBot (ChatGPT search), Claude-SearchBot, PerplexityBot.
User-triggered
ChatGPT-User, Claude-User and Perplexity-User. These act for a person, and some operators say robots.txt may not apply to them.

Google-Extended does not affect Google Search

Google-Extended isn't a separate crawler. It's a token Google reads to decide whether content Googlebot already crawled can be used for Gemini models. Blocking it doesn't remove you from Google Search, and blocking Googlebot to opt out of AI would remove you from Search entirely.

Where to put robots.txt

The file must be named robots.txt, in lowercase, and live at the root of the host: https://example.com/robots.txt. A file in a subfolder is ignored. Each subdomain and protocol needs its own file, so blog.example.com reads blog.example.com/robots.txt, not the one on example.com.

On WordPress, an SEO plugin usually manages it. On Shopify, edit the robots.txt.liquid template. On Webflow and most site builders there's a robots.txt field in the site's SEO settings.

Common robots.txt mistakes

Most robots.txt problems come from a short list.

  • Leaving Disallow: / in place after a site moves from staging to live
  • Blocking CSS and JavaScript files, which stops Google rendering your pages properly
  • Using robots.txt to remove pages from Google instead of noindex
  • Putting the file anywhere other than the root of the domain
  • Expecting Google to obey Crawl-delay or noindex lines, which it ignores
  • Assuming paths are case-insensitive. /Admin and /admin are different rules

Testing your robots.txt

After uploading, open example.com/robots.txt in a browser to confirm it's live, then test the URLs that matter with our Robots.txt Tester. Google Search Console's robots.txt report shows the version Google last fetched and any errors it found. Google generally caches the file for up to 24 hours, so changes aren't picked up instantly.

Your AI SEO agent

Or let your agent do it for you

This tool is one check. SEOLadders is an AI SEO agent that runs the whole job on your site, every day.

A site audit with fix steps

It audits your site and lists what to fix, with steps written for the platform your site runs on. Content Radar spots pages losing clicks.

Keyword research and topic clusters

It finds what your customers search for, groups it into topic clusters around pillar keywords, and plans the articles that cover them.

30 articles a month, published

It writes and publishes 30 articles a month to your site, with images, citations and links. Auto-publish is on once your CMS is connected; turn on Review mode to approve each one.

Backlink outreach, drafted

It finds link targets and drafts the outreach for you to send from your own inbox. The link exchange places links inside members' articles.

Tracked on six AI engines

It tracks whether ChatGPT, Perplexity, Gemini, Claude, Google AI Overview and Google AI Mode recommend you, rechecked throughout the week.

Start free

3-day free trial. Cancel anytime, no charge, no questions.

Robots.txt Generator, answered.

What it does, what it runs on, and how it fits the platform.

See the full platform →

A tool that writes the robots.txt file for you from a few choices: which crawlers to allow, which paths to block, and where your sitemap is. This one runs in your browser and lets you copy or download the file.

Your move

Rank on Google and get cited
by AI on autopilot

Connect your site once and the work runs in the background, it finds the topics, builds the content and authority behind them, then tracks where you land on Google and how often AI platforms recommend you.

3-day free trialNo SEO experience neededCancel anytime