robots.txt for AI platforms: who to let in and who you must not block
robots.txt is the first file bots open. One wrong Disallow and ChatGPT stops seeing your updates, Gemini never finishes reading your pricing page, and you spend weeks hunting for the reason "why we're not in the recommendations." It's not in your WordPress code. It's not "the algorithm." It's one line someone added "because a chat told them to."
Below: who to let in for AI visibility, who you must not cut by mistake, what site owners do to themselves, and how to check the file before you touch it. robots.txt is not an SEO toy. It's the switch that decides whether a model reads you or learns from your competitor.
Why AI platforms even care about robots.txt
Classic search engines have read robots.txt for decades. LLM crawlers follow the same logic: the file says where you can go and where you can't. It's not hack protection and it's not an NDA. It's a polite rule for robots. Break it and the bot stops visiting or visits less often. For a business, that means fewer mentions in ChatGPT, Copilot, and Gemini answers.
Then there's a separate layer: WAFs, Cloudflare, nginx rules, "anti-scraping" toggles in your hosting panel. They cut bots even when robots.txt looks perfect. So you check both the file and the actual server response. In a Leadsy audit that's one block: technical access, not guesswork from a notepad.
A lot of people think: "our site is open, why bother with the file." The bot still asks permission. If the answer is ambiguous, or www and non-www disagree, the crawler picks the safe option. Usually that means "don't visit."
Who to let in if you want leads from AI
For visibility in AI answers, the critical crawlers are GPTBot (OpenAI), ClaudeBot (Anthropic), PerplexityBot, Google-Extended (Gemini), and Meta AI's crawler. Googlebot still matters for classic search and for feeding Google's AI surfaces. The list changes over time; the rule is simple: if you want a platform's answers to mention you, its bot has to read your public pages with pricing, FAQ, and contact info.
- GPTBot — ChatGPT and OpenAI products;
- ClaudeBot — Claude;
- PerplexityBot — Perplexity;
- Google-Extended — Gemini and Google's extended AI services;
- Meta AI crawler — Meta AI answers.
Blocking everyone "so they don't steal our copy" is the most common mistake. People and competitors read your copy anyway. Without bots, there's nothing to build a recommendation from. A competitor with open access gets the leads; you don't. No click, no call — same as in the article about getting into AI assistant recommendations.
Five signs robots.txt is cutting you off
- The file has User-agent: * Disallow: / or the root is closed with no Allow for the paths you need.
- You copied a template from another site — the paths don't match your CMS, but the Disallow stayed.
- You blocked GPTBot "for privacy," and your host is cutting a broader class of bots.
- www and non-www serve different robots.txt files — the bot hits one mirror, the file lives on the other.
- You never verified after the edit: the audit shows red on technical access, but your notepad says "all good."
Fail one of these and you're not "a little lower in search." You're absent from the model's knowledge of your niche. Someone asks ChatGPT and hears a competitor's name.
Blocking GPTBot "because we're a local business" is a mistake for a clinic, salon, or delivery service: plenty of customers ask ChatGPT about local services. The audit check: does the bot actually reach your FAQ and pricing.
Perplexity and Claude crawlers also need to read your public pricing if you want mentions there. A blanket ban on "all the extra ones" cuts channels you forgot you had.
What owners do themselves and where it breaks
Forums still say: "block GPTBot," "copy the robots file from a SaaS," "add Disallow for everything unnecessary." Sounds fast. In practice it costs you weeks of visibility.
Copy-pasting someone else's template
You grabbed a file from an IT company: /docs/, /api/, /blog/dev/. You run a salon, none of those paths exist, but the template had Disallow: /. The site is closed to everyone. The owner didn't touch the file for months — and it never showed up in ChatGPT tests.
Banning the "extra" bots
You blocked GPTBot, ClaudeBot, "the unnecessary ones." Along the way you clipped the general user-agent or your WAF cut Googlebot. Ads keep running, recommendations stay silent.
Disallow by substring
Disallow: /private also cuts /private-clinic if the server is set up that way. You closed the "back office" and closed half your services with it.
Edits with no backup and no audit
One line on a Friday night. By Monday, updates stopped showing in AI answers. Rolling back isn't a one-minute job: you need a recrawl and card alignment.
Conflict with llms.txt
llms.txt points to /price/, robots.txt blocks /price. You created the contradiction yourself. The AI doesn't argue — it goes to your competitor. More on this: the llms.txt article.
What you can safely close
It makes sense to close the admin panel, cart, account pages, UTM filters, duplicates with ?sort=, test subdomains, and drafts. Do not close: services, pricing, FAQ, contacts, about, case studies.
User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Disallow: /cart/ Disallow: /checkout/ User-agent: GPTBot Allow: / User-agent: Google-Extended Allow: /
An example — don't copy it blindly. Paths depend on your CMS. On WordPress, robots.txt is often managed by a plugin or a physical file in the root; on Webflow and Squarespace it's in site settings. Check your old test subdomain: it often has Disallow: / with a copy of your pricing.
How it ties to llms.txt and sitemap
llms.txt points to important URLs, robots.txt allows or forbids crawling, sitemap hints at structure. All three files should say the same thing: public commercial pages are open. A mismatch isn't a "small thing" — it's the reason the bot never reaches your pricing.
noindex and Disallow are different layers. noindex tells search not to put the page in the index. Disallow tells bots not to visit the URL. A page can be noindexed while the bot is blocked at the server. You need both in your head, not one.
How to "spook" a bot in one evening
Figuratively — yes, you can. In practice it looks like this:
- Disallow: / after an admin hack — and you forgot to reopen it.
- A sudden file swap with no saved previous version.
- llms.txt says "read the pricing," robots blocks /price/.
- A WAF with "anti-scraping" cuts GPTBot along with the attackers.
- Edits with no audit — a month later nobody knows what broke visibility.
The bot won't get offended. It just stops counting you as a source. Customers keep asking ChatGPT and keep hearing other names.
Worse is when the content itself is "spooked": you deleted services, changed prices on the site, but your Google Business Profile still shows last year's numbers. The AI sees the conflict and picks whoever has consistent figures.
The right order and where to start
Don't edit robots.txt "by eye." Start with a snapshot: a free Leadsy audit shows which bots reach you and whether the block is in the file or at the WAF. Save the old version in git or a note.
- Express audit: GEO Score, technical access, GPTBot and Google-Extended.
- Check www / non-www, http / https.
- Targeted Allow rules, not a blanket ban on "all the extra ones."
- Align with llms.txt and sitemap.
- Re-audit in 2–4 weeks.
Mini-test: open yoursite.com/robots.txt in incognito, load your pricing page on mobile without a VPN, run three prompts in ChatGPT. If it disagrees with the report, dig into the WAF — don't write more SEO copy.
If you already closed the whole site, restore access, align your cards and FAQ, and give crawlers time. Timelines are weeks, not hours. Pricing: pricing page. On AIO: AIO vs SEO.
robots.txt is the visibility switch. Mistakes here aren't cheap to fix. Get the numbers from an audit first, then edit. Without a snapshot, any advice from a chat is a lottery with your domain.
Typical story: on a friend's advice, someone blocked a few user-agents "so the structure isn't exposed." Organic leads didn't drop — there weren't any. But mentions in ChatGPT tests disappeared. They only came back after an audit, unblocking, and card alignment. Not a weekend — weeks.
If "nothing changed in three days" after reopening the site — that's normal. Crawlers don't work on your calendar. First stable access, then FAQ and pricing, then patience.
Don't touch robots.txt before the snapshot. Don't copy someone else's file. Audit first — you'll see whether GPTBot or Google-Extended is being cut right now.
Mini-checklist: file opens in incognito, www = non-www, pricing loads on mobile, three prompts in ChatGPT, no red flags in the report or a plan to fix them. Fifteen minutes before any edits.
"Our robots is fine" and "bots actually reach us" are different things. The file looks great, the WAF cuts — recommendations stay silent. Leadsy checks both layers.
A free audit doesn't obligate you to buy an action plan. But it removes the lottery with your domain. One Disallow: / costs more than any plan to roll it back.
Who edits the file: a developer or an admin with root access. A marketer doesn't touch it without a snapshot from the audit. The owner signs off on what's open to bots.
After a hosting or CDN change, check robots again — the WAF may have turned on by default. Same file, bots no longer reach you.
User-agent: * and separate blocks for GPTBot and Google-Extended — verify that specific rules don't contradict the general ones. A bot reads its own block, not the "average."
A staging subdomain like staging.yoursite.com with Disallow: / sometimes gets indexed separately — keep it out of public view or redirect it to production.