Here's a failure that's very common and almost never noticed:

  1. The marketing team asks "can ChatGPT and Perplexity cite our docs?"
  2. Someone checks robots.txt. It says Allow. Done.
  3. Meanwhile the CDN has an "AI bot protection" toggle on, or a WAF rule blocks anything with bot in the user agent, or a JavaScript challenge sits in front of /docs. Every AI fetcher gets a 403 or a "Just a moment…" page.

robots.txt is a request that well-behaved bots read. Your WAF is what actually answers them. They drift apart all the time, and nothing in a normal CI pipeline would notice.

This post builds that missing test.

Where blocks happen

Which bots to test

Test two kinds of agents, and leave training crawlers out unless you want them in:

Kind Examples Why it matters
Search crawlers OAI-SearchBot, Claude-SearchBot, PerplexityBot, bingbot Get your pages into the indexes AI answers are built from
User-triggered fetchers ChatGPT-User, Claude-User, Perplexity-User, Google-Agent Fetch a page right now because a person asked about it or pasted the URL

User-triggered fetchers are the ones aggressive WAFs hurt most. When someone pastes your pricing URL into ChatGPT and asks "is there a free tier?", a 403 means the assistant guesses.

An important caveat before you trust a red result

This test sends the bot's user-agent string from your CI runner's IP. That tells you how your stack treats the user agent.

  • If a rule blocks by UA (common: "block AI bots" toggles, *bot* regexes, UA deny lists), a block here means the real bot is blocked too.
  • If your stack verifies bots by IP range or reverse DNS and lets the verified ones through, a block here may be correct: your CI runner is an impostor. In that case, use your logs to confirm real bot traffic gets 200s (the earlier post on verifying Claude traffic shows how).

So treat a failure as "investigate", and treat a pass as strong evidence that UA-based rules aren't the problem.

The test

# ai_access_test.py import os, re, sys, json from concurrent.futures import ThreadPoolExecutor import requests # Replace these with the exact strings from each vendor's crawler docs. # The product token (e.g. "ChatGPT-User/1.0") is what most WAF rules match on. def ua(token, url): return f"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; {token}; +{url})" AGENTS = { "browser": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 " "(KHTML, like Gecko) Chrome/130.0 Safari/537.36", "OAI-SearchBot": ua("OAI-SearchBot/1.0", "https://openai.com/searchbot"), "ChatGPT-User": ua("ChatGPT-User/1.0", "https://openai.com/bot"), "Claude-SearchBot": ua("Claude-SearchBot/1.0", "https://www.anthropic.com"), "Claude-User": ua("Claude-User/1.0", "https://www.anthropic.com"), "PerplexityBot": ua("PerplexityBot/1.0", "https://perplexity.ai/perplexitybot"), "Perplexity-User": ua("Perplexity-User/1.0", "https://perplexity.ai/perplexity-user"), "bingbot": ua("bingbot/2.0", "http://www.bing.com/bingbot.htm"), } CHALLENGE = re.compile( r"just a moment|cf-chl|challenge-platform|captcha|access denied|" r"enable javascript and cookies|attention required|bot detected", re.I) def fetch(url, agent): try: r = requests.get(url, headers={"User-Agent": AGENTS[agent], "Accept": "text/html,*/*;q=0.8"}, timeout=20, allow_redirects=True) body = r.text[:200_000] return {"status": r.status_code, "len": len(body), "challenge": bool(CHALLENGE.search(body[:20_000])), "final": r.url} except requests.RequestException as e: return {"status": 0, "len": 0, "challenge": False, "final": str(e)[:80]} def verdict(base, res): if res["status"] == 0: return "ERROR" if res["status"] in (401, 403, 429, 503) and base["status"] == 200: return f"BLOCKED {res['status']}" if res["challenge"] and not base["challenge"]: return "CHALLENGE" if base["len"] and res["len"] < 0.3 * base["len"]: return f"THIN ({res['len']}/{base['len']} bytes)" if res["final"] != base["final"]: return "REDIRECTED ELSEWHERE" return "ok" def main(urls): failures = 0 with ThreadPoolExecutor(max_workers=8) as pool: for url in urls: jobs = {a: pool.submit(fetch, url, a) for a in AGENTS} results = {a: j.result() for a, j in jobs.items()} base = results.pop("browser") print(f"\n{url} (browser: {base['status']}, {base['len']} bytes)") for agent, res in results.items(): v = verdict(base, res) failures += v != "ok" print(f" {agent:17} {res['status']:>3} {v}") print(f"\n{failures} problem(s)") return 1 if failures else 0 if __name__ == "__main__": urls = sys.argv[1:] or json.load(open("ai_access_urls.json")) sys.exit(main(urls)) 
pip install requests python ai_access_test.py https://example.com/ https://example.com/pricing https://docs.example.com/quickstart 

Real output for two pages on vistaai.io (November 2026), where nothing is blocked:

https://www.vistaai.io/ (browser: 200, 200000 bytes) OAI-SearchBot 200 ok ChatGPT-User 200 ok Claude-SearchBot 200 ok Claude-User 200 ok PerplexityBot 200 ok Perplexity-User 200 ok bingbot 200 ok https://www.vistaai.io/pricing (browser: 200, 200000 bytes) OAI-SearchBot 200 ok ChatGPT-User 200 ok Claude-SearchBot 200 ok Claude-User 200 ok PerplexityBot 200 ok Perplexity-User 200 ok bingbot 200 ok 0 problem(s) 

On a site with a CDN "block AI bots" toggle switched on, the AI agents get BLOCKED 403 while bingbot still gets 200. When you see that pattern, the cause is almost always a single vendor toggle rather than your own rules.

The verdicts

  • BLOCKED: a status code the browser didn't get.
  • CHALLENGE: a 200 that's actually an interstitial. This is the sneaky one, because uptime monitors count it as success. A fetcher that doesn't run JavaScript sees only the challenge text.
  • THIN: the response is under 30% of the browser's size. That usually means the agent got an empty app shell, a consent wall or a "please upgrade your browser" page.
  • REDIRECTED ELSEWHERE: the bot got sent to a different final URL, such as a geo page, a login, or the homepage.

Run it in CI

# .github/workflows/ai-access.yml name: ai-access on: schedule: [{ cron: "0 6 * * *" }] # daily: CDN settings change without a deploy  workflow_dispatch: deployment_status: jobs: test: if: github.event_name != 'deployment_status' || github.event.deployment_status.state == 'success' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: { python-version: "3.12" } - run: pip install requests - run: python ai_access_test.py 

ai_access_urls.json is the 10–30 URLs that matter: homepage, pricing, top docs pages, top comparison pages, and one URL from each subdomain.

The daily schedule is the important part. Most of these breakages don't come from your code. They come from someone flipping a toggle in a CDN dashboard, or a vendor changing a default.

Fixing what it finds

  • CDN "AI bot" toggles usually have an allowlist or a "verified bots" exception. If you want to be cited, allow search and user-triggered agents and block only training crawlers. Most vendors now let you choose by category.
  • WAF rules matching bot should be narrowed to the specific UAs you mean, with an exception for verified bots.
  • JS challenges on content pages: move them to the endpoints that actually get abused (login, search, checkout). Leave docs and pricing alone.
  • Rate limits: user-triggered fetchers come in bursts when your page is being discussed. A per-IP limit tuned for humans can 429 them exactly when it matters.

If you want this check alongside a broader page-level audit of what AI crawlers can see and extract, Vista AI's page audit covers both. The script above handles the access part on its own.

Quick checklist

  • [ ] Real UA strings from each vendor's docs pasted into AGENTS
  • [ ] 10–30 critical URLs, including every subdomain
  • [ ] Runs daily, not just on deploy
  • [ ] CHALLENGE and THIN verdicts treated as failures
  • [ ] Red results confirmed against real bot traffic in logs before you change rules