{"slug": "how-to-test-if-oai-searchbot-and-perplexitybot-can-actually-crawl-your-site-zero", "title": "How to Test If OAI-SearchBot and PerplexityBot Can Actually Crawl Your Site (Zero-Signup Live Probe + Python Script)", "summary": "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.", "body_md": "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: /`.\n\nIf you want to test a domain right now without installing anything, run it through the free zero-signup probe here:\n\n`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`\nBelow 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.\n\nA common mistake in `robots.txt` is blocking every crawler with \"AI\" or \"GPT\" in its name. Major engines split retrieval from training:\n\n| Crawler | Role | If Blocked | \n|---|---|---|\n| `OAI-SearchBot` | ChatGPT Search indexing & citations | Pages drop out of ChatGPT Search citations | \n| `PerplexityBot` | Perplexity search retrieval | Pages cannot be cited cleanly in Perplexity | \n| `Claude-SearchBot` | Claude web search indexing | Pages miss Claude search citations | \n| `GPTBot` /`Google-Extended` | Model training | Blocking stops training without removing search citations | \n\nIn real-world audits across Webflow, Shopify Plus, and Cloudflare-fronted sites, three silent bugs show up repeatedly:\n\n`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.\n\n``` python\nimport re\nimport urllib.error\nimport urllib.request\nfrom urllib.parse import urlparse\n\nSEARCH_BOTS = [\n    \"OAI-SearchBot\",\n    \"PerplexityBot\",\n    \"Claude-SearchBot\",\n]\n\ndef fetch(url: str, ua: str, timeout: int = 10) -> tuple[int, str, str]:\n    req = urllib.request.Request(url, headers={\"User-Agent\": ua})\n    try:\n        with urllib.request.urlopen(req, timeout=timeout) as resp:\n            return resp.status, resp.headers.get(\"Content-Type\", \"\"), resp.read(200_000).decode(\"utf-8\", \"ignore\")\n    except urllib.error.HTTPError as exc:\n        return exc.code, exc.headers.get(\"Content-Type\", \"\"), \"\"\n    except Exception as exc:\n        return 0, str(exc), \"\"\n\ndef audit_url(target: str) -> None:\n    origin = f\"{urlparse(target).scheme}://{urlparse(target).netloc}\"\n    r_code, r_type, r_txt = fetch(f\"{origin}/robots.txt\", \"Mozilla/5.0\")\n    print(f\"robots.txt -> HTTP {r_code} ({r_type.split(';')[0]})\")\n\n    for bot in SEARCH_BOTS:\n        code, ctype, _ = fetch(target, f\"Mozilla/5.0 (compatible; {bot}/1.0)\")\n        print(f\"  live {bot:18s} -> HTTP {code}\")\n\n    _, _, html = fetch(target, \"Mozilla/5.0\")\n    jsonld = sorted(set(re.findall(r'\"@type\"\\s*:\\s*\"([^\"]+)\"', html)))\n    print(\"  initial-HTML JSON-LD:\", jsonld or [\"NONE\"])\n\n    m = re.search(r\"^\\s*sitemap:\\s*(\\S+)\", r_txt, re.I | re.M)\n    sm_raw = m.group(1) if m else f\"{origin}/sitemap.xml\"\n    sm_url = sm_raw if re.match(r\"^https?://\", sm_raw, re.I) else f\"https://{sm_raw.lstrip('/')}\"\n    s_code, _, s_txt = fetch(sm_url, \"Mozilla/5.0\")\n    usable = s_code == 200 and bool(re.search(r\"<(urlset|sitemapindex)\", s_txt, re.I))\n    print(f\"  sitemap ({sm_url}) -> HTTP {s_code}, valid_xml={usable}\")\n\nif __name__ == \"__main__\":\n    audit_url(\"https://usethelever.com\")\nUser-agent: OAI-SearchBot\nAllow: /\n\nUser-agent: PerplexityBot\nAllow: /\n\nUser-agent: Claude-SearchBot\nAllow: /\n\nUser-agent: GPTBot\nDisallow: /\n\nUser-agent: Google-Extended\nDisallow: /\n\nSitemap: https://yourdomain.com/sitemap.xml\n```\n\n*(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`.)*\n\n`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.", "url": "https://wpnews.pro/news/how-to-test-if-oai-searchbot-and-perplexitybot-can-actually-crawl-your-site-zero", "canonical_source": "https://dev.to/alicexixi85/how-to-test-if-oai-searchbot-and-perplexitybot-can-actually-crawl-your-site-zero-signup-live-probe-2h65", "published_at": "2026-11-24 22:32:54+00:00", "updated_at": "2026-11-24 22:44:15.062206+00:00", "lang": "en", "topics": ["ai-crawlers", "generative-engine-optimization", "ai-search", "structured-data", "ai-tools"], "entities": ["OAI-SearchBot", "PerplexityBot", "Claude-SearchBot", "GPTBot", "Google-Extended", "Cloudflare", "ChatGPT Search", "Perplexity"], "also_reported_by": [], "takeaway": "Test each AI search crawler with its own user agent rather than trusting robots.txt, since a CDN or WAF can return 403 to PerplexityBot while robots.txt allows it.", "recommendation": {"advice": "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.", "playbook": "rag-retrieval", "playbook_url": "https://wpnews.pro/playbooks/rag-retrieval"}, "alternates": {"html": "https://wpnews.pro/news/how-to-test-if-oai-searchbot-and-perplexitybot-can-actually-crawl-your-site-zero", "markdown": "https://wpnews.pro/news/how-to-test-if-oai-searchbot-and-perplexitybot-can-actually-crawl-your-site-zero.md", "text": "https://wpnews.pro/news/how-to-test-if-oai-searchbot-and-perplexitybot-can-actually-crawl-your-site-zero.txt", "jsonld": "https://wpnews.pro/news/how-to-test-if-oai-searchbot-and-perplexitybot-can-actually-crawl-your-site-zero.jsonld"}}