Robots.txt generator and tester.

Build a robots.txt in a few clicks, decide which AI crawlers may read your site, or test an existing file to see who is allowed to fetch a given page.

How to use the Robots.txt Generator & Tester

  1. Choose "Generate" to build a file, or "Test" to check an existing one.
  2. Pick a preset, tick the AI crawlers you want to block and add any folders to keep out.
  3. Copy or download robots.txt, upload it to your site root, then test it here.

Good to know

robots.txt asks crawlers politely; it does not protect private pages. Anything secret needs a login. A rule that is too broad can hide your whole site from Google, which is why the tester shows exactly who may fetch a path.

Questions about this tool

It is your choice. Blocking GPTBot, ClaudeBot and similar crawlers keeps your content out of those assistants' answers and training; allowing them lets them quote and link to you.

At the root of the domain: yoursite.com/robots.txt. It does not work in a sub-folder.

Not reliably. Disallow stops crawling, not indexing. To keep a page out of search results use a noindex tag and let Google crawl it.

Allow everything, disallow /wp-admin/ (but allow admin-ajax.php), and add the address of your sitemap. The WordPress preset does exactly that.

Want every page written, checked and published for you?

InfinityWriter researches, writes and scores articles against these same checks, and publishes them to your WordPress site. Ten articles a month are free.

Welcome back

Sign in to keep your articles moving.

Continue with Google
or
InfinityWriter

Your privacy choices

InfinityWriter is operated by ECO Management Group LLC

Strictly necessary Keeps you signed in and remembers this choice. The site cannot work without them.
bfc_sessioniw_consent
Always on
Preferences Remembers interface choices, such as a collapsed sidebar, in your browser storage.
bfc.sidebar.rail
Analytics Google Analytics counts visits to this website so we can see which pages help people. Never inside your account.
_ga_ga_PGGSEEVEVS

No advertising or cross-site tracking cookies. Ever.