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

> Source: <https://dev.to/alicexixi85/how-to-test-if-oai-searchbot-and-perplexitybot-can-actually-crawl-your-site-zero-signup-live-probe-2h65>
> Published: 2026-11-24 22:32:54+00:00

**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 the playbook "Retrieval and RAG": <https://wpnews.pro/playbooks/rag-retrieval>

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.

``` python
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.
