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.
Apply to Google, Bing and every other crawler.
* and $ work.
/sitemap_index.xml.
Pick a preset or set each crawler on its own.
Open yoursite.com/robots.txt, copy everything and paste it here.
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.
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.
AI crawlers do different jobs. Before blocking any of them, know which job you are switching off.
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.
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.
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.
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.
Blocking every AI crawler only makes sense if you genuinely want no presence in AI answers at all.
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.
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.
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 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.
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.
Disallow: / left over from staging. The test site blocks everything and the line survives the launch. Google and AI see nothing.Disallow: /wp-content/ stop Google from rendering the page properly.noindex.anthropic-ai and Claude-Web no longer do anything. Anthropic now uses ClaudeBot, Claude-SearchBot and Claude-User.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.
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.
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.
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.
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.
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.
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.
No. Generating and checking both run in JavaScript in your browser. Nothing you type or paste is sent to a server.
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.
I use analytics cookies to see which pages help and which don’t. None are set until you choose. Privacy policy