Robots.txt Generator

Create a clean robots.txt: block admin, cart or search pages, add your sitemap and choose which AI crawlers, such as GPTBot and ClaudeBot, can visit.

Robots.txt Generator tool

Start from a common setup
AI crawlers allowed

Your robots.txt

User-agent: *
Disallow: /wp-admin/
Disallow: /?s=
Allow: /wp-admin/admin-ajax.php

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

Upload the file to the root of your domain (example.com/robots.txt). Robots.txt controls crawling, not indexing: to keep a page out of Google, use a noindex tag instead. Blocking AI crawlers can reduce how often AI answers mention your site.

How to use it

  1. Start from a preset (WordPress, Shopify, WooCommerce) or list your own paths to block
  2. Add your sitemap URL and choose which AI crawlers are allowed
  3. Copy or download the file and upload it to the root of your domain

Examples

  • WordPress: block /wp-admin/ but allow /wp-admin/admin-ajax.php (the tool adds this for you), and block internal search results (/?s=).
  • Online store: block cart, checkout and account pages, which have no search value.
  • Staging site: untick "Allow search engines to crawl the site" so the whole site is blocked.

FAQs

Does robots.txt stop a page appearing in Google?

Not reliably. It stops crawling, but a blocked URL can still be indexed if other sites link to it. To keep a page out of search results, allow crawling and add a noindex tag.

Should I block AI crawlers?

It depends on your goals. Blocking them can keep your content out of AI training data, but it can also reduce how often AI assistants such as ChatGPT or Perplexity find and cite your pages.

Where does the file go?

At the root of the domain, for example https://www.example.com/robots.txt. Each subdomain needs its own file.

Learn more: What is robots.txt? · All free tools

Other tools: SERP Snippet Preview · UTM Link Builder · URL Slug Generator · Meta Tag Generator · FAQ Schema Generator · Word Counter & Keyword Density · ROAS & CPA Calculator

Want an expert to check how search engines crawl your site?

CallWhatsApp