cd /news/ai-crawlers/how-to-test-if-oai-searchbot-and-per… · home › topics › ai-crawlers › article
[ARTICLE · art-175744] src=dev.to ↗ pub= topic=ai-crawlers verified=true sentiment=· neutral

How to Test If OAI-SearchBot and PerplexityBot Can Actually Crawl Your Site (Zero-Signup Live Probe + Python Script)

A developer published a zero-signup live probe and a 35-line standard-library Python script for auditing whether AI search crawlers such as OAI-SearchBot, PerplexityBot and Claude-SearchBot can actually reach a site. The script checks robots.txt status, live HTTP responses per crawler user agent, initial-HTML JSON-LD, and sitemap validity, targeting failure modes like blanket robots.txt blocks, WAF 403s, malformed sitemap directives and JavaScript-only structured data.

recommendation

Probe OAI-SearchBot, PerplexityBot and Claude-SearchBot with their real user agents and check initial-HTML JSON-LD and sitemap XML, since robots.txt alone can hide WAF 403s and JS-only markup.

more in playbook: Retrieval and RAG
by read3 min views1 publishedNov 24, 2026

Most technical SEO audits check Googlebot and stop there. In 2026, a site can return 200 OK to Googlebot while silently disappearing from ChatGPT Search and Perplexity—either because a blanket robots.txt rule blocked search crawlers alongside training bots, or because a CDN/WAF returns 403 to AI user agents even when robots.txt says Allow: /.

If you want to test a domain right now without installing anything, run it through the free zero-signup probe here:

robots.txt rules split between AI search bots vs. training bots, live HTTP responses, canonical/og:url, initial-HTML JSON-LD, /llms.txt, and XML sitemap — including Sitemap: lines that omit https://) https://mcp.usethelever.com/geo-audit/mcp Below is the exact checklist and a 35-line standard-library Python script you can run locally to verify the four failure modes we keep seeing on real agency and SaaS sites.

A common mistake in robots.txt is blocking every crawler with "AI" or "GPT" in its name. Major engines split retrieval from training:

Crawler Role If Blocked
OAI-SearchBot ChatGPT Search indexing & citations Pages drop out of ChatGPT Search citations
PerplexityBot Perplexity search retrieval Pages cannot be cited cleanly in Perplexity
Claude-SearchBot Claude web search indexing Pages miss Claude search citations
GPTBot /Google-Extended Model training Blocking stops training without removing search citations

In real-world audits across Webflow, Shopify Plus, and Cloudflare-fronted sites, three silent bugs show up repeatedly:

OAI-SearchBot, yet Cloudflare Bot Fight Mode or an aggressive WAF responds with HTTP 403 when PerplexityBot requests the homepage.404 page at /robots.txt (crawlers treat non-200 HTML as unusable) or write Sitemap: example.com/sitemap.xml without Organization / Product JSON-LD only after JavaScript executes look nearly empty to lightweight HTML fetchers.

import re
import urllib.error
import urllib.request
from urllib.parse import urlparse

SEARCH_BOTS = [
    "OAI-SearchBot",
    "PerplexityBot",
    "Claude-SearchBot",
]

def fetch(url: str, ua: str, timeout: int = 10) -> tuple[int, str, str]:
    req = urllib.request.Request(url, headers={"User-Agent": ua})
    try:
        with urllib.request.urlopen(req, timeout=timeout) as resp:
            return resp.status, resp.headers.get("Content-Type", ""), resp.read(200_000).decode("utf-8", "ignore")
    except urllib.error.HTTPError as exc:
        return exc.code, exc.headers.get("Content-Type", ""), ""
    except Exception as exc:
        return 0, str(exc), ""

def audit_url(target: str) -> None:
    origin = f"{urlparse(target).scheme}://{urlparse(target).netloc}"
    r_code, r_type, r_txt = fetch(f"{origin}/robots.txt", "Mozilla/5.0")
    print(f"robots.txt -> HTTP {r_code} ({r_type.split(';')[0]})")

    for bot in SEARCH_BOTS:
        code, ctype, _ = fetch(target, f"Mozilla/5.0 (compatible; {bot}/1.0)")
        print(f"  live {bot:18s} -> HTTP {code}")

    _, _, html = fetch(target, "Mozilla/5.0")
    jsonld = sorted(set(re.findall(r'"@type"\s*:\s*"([^"]+)"', html)))
    print("  initial-HTML JSON-LD:", jsonld or ["NONE"])

    m = re.search(r"^\s*sitemap:\s*(\S+)", r_txt, re.I | re.M)
    sm_raw = m.group(1) if m else f"{origin}/sitemap.xml"
    sm_url = sm_raw if re.match(r"^https?://", sm_raw, re.I) else f"https://{sm_raw.lstrip('/')}"
    s_code, _, s_txt = fetch(sm_url, "Mozilla/5.0")
    usable = s_code == 200 and bool(re.search(r"<(urlset|sitemapindex)", s_txt, re.I))
    print(f"  sitemap ({sm_url}) -> HTTP {s_code}, valid_xml={usable}")

if __name__ == "__main__":
    audit_url("https://usethelever.com")
User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: GPTBot
Disallow: /

User-agent: Google-Extended
Disallow: /

Sitemap: https://yourdomain.com/sitemap.xml

(Note: verify your CDN/WAF allowlist in addition to robots.txt — if your firewall blocks verified AI search IP ranges, robots.txt alone will not fix a 403.)

X-Robots-Tag / noai detection, 5-file client patch pack, and 4-page white-label A4 client PDFs): linked directly from the checker page and GitHub repo.

── more in #ai-crawlers 4 stories · sorted by recency
── more on @oai-searchbot 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-test-if-oai-s…] indexed:0 read:3min 2026-11-24 · —