Vuk Stojković
Free tool  ·  Crawling  ·  AI search

Robots.txt generator for AI crawlers

Decide who gets to read your site: Google, ChatGPT, Claude, Gemini, Perplexity and a dozen other AI crawlers. Build a clean robots.txt in a couple of minutes, or paste the one you have and see, bot by bot, whether you are quietly blocking AI search.

16 AI crawlers Checker for existing files Google's matching rules Runs in your browser
01

Base rules

Apply to Google, Bing and every other crawler.

One path per line. * and $ work.
Exceptions inside disallowed folders.
Full URL, one per line. On WordPress with Yoast or Rank Math it is usually /sitemap_index.xml.
02

AI crawlers

Pick a preset or set each crawler on its own.

robots.txt

              

This builds and reads the file itself, it does not fetch your live robots.txt. CDN or firewall rules (for example Cloudflare's AI crawler blocking) can still stop a bot that robots.txt allows.

Guide

Why robots.txt matters for AI search

Robots.txt is a plain text file at example.com/robots.txt. Crawlers read it before anything else on the host, because it tells them where they may and may not go. For years only Google, Bing and a few SEO tools cared. Now the crawlers behind ChatGPT, Claude, Gemini, Perplexity and other AI products read it too.

That is where things go wrong. Plenty of sites block AI crawlers without anyone deciding to: a security plugin, a template copied from a forum, a hosting default. The owner has no idea. Then a buyer asks ChatGPT for the best agency in their city, the assistant cannot read the site, and it recommends a competitor instead.

Three kinds of AI crawlers

AI crawlers do different jobs. Before blocking any of them, know which job you are switching off.

AI search

Build the index AI assistants pick sources and links from. Examples: OAI-SearchBot, Claude-SearchBot, PerplexityBot.

Block them and you stop appearing as a cited source in AI answers.

User-triggered fetchers

Open a page when a user asks for it in a chat, for example by pasting your link. Examples: ChatGPT-User, Claude-User.

Block them and the assistant cannot read your page even when a user asks it to.

Model training

Collect content to train future models. Examples: GPTBot, ClaudeBot, Google-Extended, CCBot.

Block them and new models know less about you, but AI search can still cite you.

Should you block AI crawlers?

For most businesses, no. If you sell services or products, you want AI assistants to know about you and recommend you. Every blocked crawler is one less channel where buyers can find you.

  • Service businesses, agencies, SaaS, local firms: pick "Maximum visibility".
  • Online stores: also "Maximum visibility", with cart, checkout, account and filter URLs disallowed.
  • Publishers whose content is the product (paywalled articles, courses, datasets): "Visible, no training". AI search can still cite you and send visits, but the training crawlers stay out.

Blocking every AI crawler only makes sense if you genuinely want no presence in AI answers at all.

Google AI Overviews and Google-Extended

A common mix-up: Google-Extended does not decide whether you appear in AI Overviews or AI Mode. Those are part of Google Search and use the same Googlebot as the regular results. Google-Extended controls whether Google may use your content to train Gemini models and to ground answers in Gemini apps.

So never block Googlebot if you want to be in AI Overviews. The same goes for Bingbot: Microsoft Copilot leans on Bing's index.

How to deploy the file

WordPress

In Yoast SEO go to Yoast SEO › Tools › File editor. In Rank Math it is Rank Math › General Settings › Edit robots.txt. Paste the generated file and save. If a physical robots.txt already exists in the site root, it wins over the plugin and you need to edit that file instead.

Other servers

Download the file and upload it to the web root (often public_html) via your host's file manager, SFTP or your deploy pipeline. It must be named exactly robots.txt, served as plain text with a 200 status, and reachable at yoursite.com/robots.txt.

Shopify

Shopify generates robots.txt itself. Changes go through the robots.txt.liquid template in your theme, so carry over only the AI crawler groups from the generator.

Cloudflare and other CDNs

If the site runs through Cloudflare, check the AI crawler settings in the dashboard. Cloudflare can block AI bots at the edge before they ever reach robots.txt, and in that case even a perfect file does nothing. The same applies to WAF rules and bot protection on other CDNs.

Common mistakes

  • Disallow: / left over from staging. The test site blocks everything and the line survives the launch. Google and AI see nothing.
  • Blocked CSS and JavaScript. Rules like Disallow: /wp-content/ stop Google from rendering the page properly.
  • Robots.txt instead of noindex. A disallowed URL can still be indexed from links, just without a snippet. To keep a page out of Google, let it be crawled and use noindex.
  • Outdated bot names. anthropic-ai and Claude-Web no longer do anything. Anthropic now uses ClaudeBot, Claude-SearchBot and Claude-User.
  • Treating robots.txt as security. The file is public and a request, not a lock. Put private pages behind authentication.

How the checker reads your file

The checker follows the rules in Google's robots.txt documentation and RFC 9309. Each crawler uses only the group that names it, and falls back to User-agent: * when no group does. Groups that name the same crawler are merged. Inside the group, the longest matching path wins, and when an Allow and a Disallow rule are equally long, Allow wins.

That is why a site with User-agent: GPTBot and an empty rule set is not "inheriting" your general disallows: GPTBot ignores the * group as soon as it has its own. The per-bot table shows which group each crawler actually used.

FAQ

Does robots.txt affect whether my site appears in ChatGPT?

Yes. ChatGPT search uses OAI-SearchBot. If robots.txt blocks it, your pages will not be shown as sources in ChatGPT answers. Blocking GPTBot only affects model training, not search.

Should I block GPTBot and ClaudeBot?

It depends on what you sell. If the content itself is the product (paywalled articles, courses, datasets), blocking training crawlers makes sense. Businesses that sell services or products are usually better off allowing them, so future models know more about the brand.

Does blocking Google-Extended remove my site from AI Overviews?

No. AI Overviews is part of Google Search and relies on Googlebot. Google-Extended only controls use of your content for Gemini model training and grounding in Gemini apps.

Where does the robots.txt file live?

Always at the root of the host, for example https://example.com/robots.txt. Every subdomain and every protocol and port combination has its own file, so shop.example.com needs a separate robots.txt.

How quickly do crawlers pick up a change?

Google generally caches robots.txt for up to 24 hours. OpenAI and Perplexity also say changes can take around 24 hours to apply to their search crawlers.

Does robots.txt protect private pages?

No. The file is public and is a request, not access control. Reputable crawlers respect it, others may not. Protect private pages with authentication and use noindex for pages you want kept out of Google.

Is my robots.txt sent anywhere when I check it?

No. Generating and checking both run in JavaScript in your browser. Nothing you type or paste is sent to a server.

Technical SEO and AI visibility

Access is only the first step.

Robots.txt opens the door. For ChatGPT, Gemini and AI Overviews to actually recommend you, the site has to be crawlable end to end and say clearly who you are and what you do. I audit crawl access, rendering and structured data, and give you a fix list your developers can work through.

Send an email Brand Visibility on Google and in AI Answers See services