Crawlability · 5 min fix
GPTBot Blocked? How to Allow AI Crawlers in robots.txt (2026 Fix)
Your site is online for browsers but returns 403 for GPTBot. ChatGPT then never cites you — not because your content is bad, but because one line in robots.txt locks the door. The largest log study to date — Ahrefs, 137,210 domains, May 2026 server logs — found 97% of published llms.txt files received zero requests of any kind. In our own 200-deployment audit, 94% of those failures traced to client-side and edge-gateway bugs, not AI disinterest (root-cause breakdown).
→ Free live check (30s)
Test now: GPTBot Access Checker — simulates GPTBot, OAI-SearchBot, PerplexityBot and shows byte ratio vs browser.
Why GPTBot gets blocked (3 causes)
- robots.txt explicit Disallow — Default WordPress/Shopify templates or Cloudflare “Bot Fight Mode” add
User-agent: GPTBot Disallow: /. - WAF / Bot protection — Cloudflare, Akamai or Wordfence returns 403/challenge to AI UAs, byte ratio <0.2.
- JS wall — SPA that returns empty shell to bots (see blank wall test).
How to check in 30 seconds
# curl with GPTBot UA; compare byte size vs browser
curl -A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot" -I https://yoursite.com/
curl -A "Mozilla/5.0" -I https://yoursite.com/
# CiteDo does this automatically and shows WAF-untrusted badge when blocked
Or use 12-bot Crawlability Audit for all 12 AI bots at once.
The 5-minute fix (allow search, block training)
Allow AI search crawlers for citations, keep training scrapers blocked if you wish:
# Allow AI search (for citations) User-agent: GPTBot Allow: / User-agent: OAI-SearchBot Allow: / User-agent: ChatGPT-User Allow: / User-agent: PerplexityBot Allow: / User-agent: ClaudeBot Allow: / User-agent: Google-Extended Allow: / # Block training scrapers (optional) User-agent: CCBot Disallow: / User-agent: Bytespider Disallow: /
Shopify (Liquid)
Create templates/robots.txt.liquid:
User-agent: GPTBot
Allow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
Next.js (App Router)
export default function robots(){ return { rules:[{userAgent:'GPTBot',allow:'/'},{userAgent:'PerplexityBot',allow:'/'},{userAgent:'CCBot',disallow:'/'}], sitemap:'https://yoursite.com/sitemap.xml'}}
WordPress (Yoast/RankMath)
SEO → Tools → File editor → robots.txt → paste the block above. If using Cloudflare: Bot Fight Mode (Free) cannot be bypassed by WAF Skip rules — turn it off, allow the bots' published IP ranges via IP Access rules, or upgrade to Super Bot Fight Mode and add a Skip rule (see Cloudflare WAF guide).
How to verify
- Re-run
curl -A GPTBot— expect 200 and byte ratio ~1.0 - Re-run GPTBot Checker — should show Allowed ✓
- Request indexing in GSC (URL Inspection) — GSC uses Googlebot, but AI crawlers follow the same Allow
Know which OpenAI bot you're actually unblocking
OpenAI runs separate bots with independent robots.txt settings, and mixing them up is the most common configuration mistake we see in audits (official crawler docs):
- OAI-SearchBot — builds the index behind ChatGPT search. OpenAI states that sites opted out of it "will not be shown in ChatGPT search answers, though can still appear as navigational links." This is the bot your citations depend on. IP list:
openai.com/searchbot.json. - ChatGPT-User — visits pages when a user (or a Custom GPT / GPT Action) asks. Retrieval, not training. IP list:
openai.com/chatgpt-user.json. - GPTBot — OpenAI documents this as the crawler whose content "may be used in training" its foundation models. CiteDo's default policy still allows it for maximum coverage (OpenAI notes that when both bots are allowed, one crawl may serve both purposes). If you want a strict no-training stance,
Disallow: /for GPTBot while keeping OAI-SearchBot and ChatGPT-User allowed — per OpenAI's docs, each setting is independent, so search visibility is preserved. IP list:openai.com/gptbot.json.
Timing matters too: OpenAI says it can take ~24 hours from a robots.txt update for its systems to adjust. Don't declare the fix failed after ten minutes.
robots.txt is open but you still get 403? Check the edge
A perfect robots.txt only governs polite crawlers that reach it. If a CDN or security layer answers first, the bot never gets that far. Work through these in order:
- Cloudflare Bot Fight Mode (Free plan). It cannot be bypassed with WAF Skip rules or Page Rules — Cloudflare's docs are explicit that BFM runs outside the Ruleset Engine. Your options: turn it off (Security → Settings), allow the bots' published IP ranges via IP Access rules (BFM won't trigger when an IP Access rule matches the request first), or upgrade to Super Bot Fight Mode, which does support Skip rules. Full walkthrough: Cloudflare WAF guide.
- Cloudflare AI Crawler and Agent access policies. Under Security → Settings → Bot traffic, Search / Agent / Training each have their own action. A policy set to Block returns 403s even when robots.txt says Allow. Defaults have changed over time, so check your zone instead of assuming.
- Bot Preference Sync. If enabled, Cloudflare prepends managed directives to your robots.txt (look for a
# BEGIN Cloudflare Bot Preference Syncmarker). Your origin file may not be what crawlers actually receive — fetch the live URL, don't trust the editor. - Origin security plugins. Wordfence-style UA blocking, rate limiting, or "block bad bots" lists can 403 AI agents at the server. WordPress-specific fixes: WordPress AEO guide.
Confirm the crawler is really OpenAI
User-agent strings are trivially spoofed, so never allowlist on UA alone. Match the source IP against the vendor's published list: OpenAI's three JSON endpoints above, Perplexity's perplexity.ai/perplexitybot.json and perplexity-user.json, and Anthropic's claude.com/crawling/bots.json. Perplexity's own docs recommend exactly this UA-plus-IP combination for firewall rules. Note that Perplexity-User "generally ignores robots.txt" because a human requested the fetch — another reason IP verification beats UA guessing.
How long until citations come back?
Access is necessary, not sufficient. After the fix: OpenAI's index adjusts within ~24 hours; Perplexity fetches live per query, so a reachable page can be cited the same day — if its retrieval pipeline picks your URL; ChatGPT-User fetches on demand when users ask. No engine guarantees a citation, which is why the end state isn't "Allowed ✓" but "actually quoted." Re-run the GPTBot Checker after every theme, plugin, or CDN change (regressions are common), keep one canonical robots template — the full reference or the Shopify playbook — and measure outcomes with the 12×3 citation matrix in the full report.
If access checks pass but you're still never quoted, the blocker has moved up the stack: extraction and consensus. Work through the five front-door causes in Why ChatGPT Doesn't Recommend Your Website, then give the engines something quote-worthy — a clean llms.txt, answer-first copy, and a GEO score above 75.
What to do next
Allowing the crawler is step 1. Step 2 is giving it something to cite: a clean llms.txt + GEO audit. Or run the full 30s free check and get a human-reviewed action list.