Live Python crawler audit output showing HTTP 404, missing canonicals, and SSR HTML gaps across five public sites

When a domain returns HTTP 200 to a desktop browser and shows Allow: / in /robots.txt, most deployment checklists stop there. Running automated curl and HTTP probes across production starter templates and edge-fronted marketing sites this week surfaced three distinct failure modes where robots.txt looks green while crawlers hit broken metadata or edge-injected blocks.

1. Edge Content-Negotiation Injecting X-Robots-Tag: noindex Behind Allow: /

Testing live Webflow + Cloudflare sites with crawler user-agents revealed an unexpected mismatch between robots.txt and actual HTTP response headers. On a production Cloudflare-fronted site whose /robots.txt explicitly returned HTTP 200 with Allow: / for every crawler:

UA=OAI-SearchBot/1.0 -> HTTP 200 | Content-Type: text/html; charset=utf-8 | X-Robots-Tag: None UA=PerplexityBot/1.0 -> HTTP 200 | Content-Type: text/html; charset=utf-8 | X-Robots-Tag: None UA=GPTBot/1.0 -> HTTP 200 | Content-Type: text/markdown; charset=utf-8 | X-Robots-Tag: noindex | Vary: Accept | Server: cloudflare 

Because Cloudflare edge negotiation served a text/markdown representation with X-Robots-Tag: noindex specifically to GPTBot/1.0, checking /robots.txt alone would report a clean pass. If an edge rule accidentally extends the same Vary: Accept or X-Robots-Tag: noindex treatment to OAI-SearchBot or PerplexityBot, search retrieval drops while browser tests keep returning green 200 OK HTML.

2. Three Common SSR & Sitemap Failure Patterns Observed Live

Running a zero-dependency Python 3 probe against five live domains (four popular open-source Next.js, Astro, and SvelteKit starter demos alongside a baseline domain) shows how often crawl signals drift apart:

Live Site Checked /robots.txt /sitemap.xml Initial SSR Canonical Initial SSR JSON-LD
en.usethelever.com 200 (allows search + training) 200 valid XML Present Present
react-saas.com 200 (references sitemap) 200 valid XML Missing Missing (0 blocks)
saasstarter.work 200 (omits Sitemap: directive) 200 valid XML Missing Present (WebSite)
positivustheme.vercel.app 404 HTML 404 HTML Present Present (WebSite)
saastart.app 404 HTML 404 HTML Missing Missing (0 blocks)

Two patterns stand out when inspecting these starter builds:

  1. 200 OK HTML frameworks often ship without <link rel="canonical"> or JSON-LD in the initial document: react-saas.com serves 118,215 bytes of rendered SSR HTML, yet omits both <link rel="canonical"> and application/ld+json. Clients that fork a boilerplate straight to production inherit duplicate-URL ambiguity across query-parameter variants.
  2. Valid sitemap.xml left undeclared in /robots.txt (or both returning 404 HTML): saasstarter.work serves valid XML at /sitemap.xml, but its /robots.txt contains only User-agent: * and Disallow: with no Sitemap: line. Meanwhile SPA/template demos like positivustheme.vercel.app and saastart.app return HTTP 404 (text/html) on both /robots.txt and /sitemap.xml.

3. A 43-Line Standard-Library Script to Verify Headers, XML, and SSR Tags

You do not need headless Chromium or third-party SDKs to catch edge X-Robots-Tag headers, text/html soft-404 sitemaps, or missing SSR metadata. Save and run this script locally with Python 3:

import re, sys, urllib.error, urllib.parse, urllib.request BOTS = [ ("OAI-SearchBot/1.0", "ChatGPT Search"), ("GPTBot/1.0", "OpenAI Training"), ("PerplexityBot/1.0", "Perplexity"), ("Mozilla/5.0", "Browser"), ] def probe(url, ua): req = urllib.request.Request(url, headers={"User-Agent": ua}) try: with urllib.request.urlopen(req, timeout=8) as r: body = r.read(160000).decode("utf-8", "ignore") return r.status, r.headers.get("Content-Type", ""), r.headers.get("X-Robots-Tag", ""), body except urllib.error.HTTPError as e: return e.code, e.headers.get("Content-Type", ""), e.headers.get("X-Robots-Tag", ""), "" def check_robots_rule(rob_text, bot_name): blocks = re.split(r"(?i)(?=^user-agent:)", rob_text.strip(), flags=re.M) for b in blocks: if re.search(rf"user-agent:\s*{re.escape(bot_name)}\b", b, re.I) and re.search(r"disallow:\s*/\s*$", b, re.M): return "BLOCKED" return "ALLOWED" for raw_url in sys.argv[1:]: u = urllib.parse.urlsplit(raw_url) root = f"{u.scheme}://{u.netloc}" print(f"\n[AUDIT] {raw_url}") rs, _, _, rob = probe(root + "/robots.txt", "Mozilla/5.0") sm_st, sm_ct, _, sm_body = probe(root + "/sitemap.xml", "Mozilla/5.0") sm_ok = (sm_st == 200) and ("xml" in sm_ct.lower() or "<urlset" in sm_body[:400].lower()) rob_note = f"HTTP {rs} (OAI-SearchBot={check_robots_rule(rob, 'OAI-SearchBot')}, GPTBot={check_robots_rule(rob, 'GPTBot')})" if rs == 200 else f"HTTP {rs}" print(f" robots.txt: {rob_note} | sitemap.xml: {sm_st} ({'VALID_XML' if sm_ok else 'SOFT404_OR_ERR'})") for ua, label in BOTS: st, ct, xrob, html = probe(raw_url, ua) tag = f"WARN x-robots={xrob}" if "noindex" in xrob.lower() else "" if ua.startswith("Mozilla"): canon = bool(re.search(r'<link[^>]+rel=["\']?canonical', html, re.I)) ld = "application/ld+json" in html.lower() print(f" {label:<16} -> HTTP {st} | SSR_bytes={len(html)} | canonical={canon} | json_ld={ld} {tag}") else: print(f" {label:<16} -> HTTP {st} ({ct.split(';')[0]}) {tag}") 

I also wrapped the same checks into a small zero-signup browser checker at usethelever.com/tools/ai-crawler-checker and open-sourced the CLI/MCP scanner at github.com/alicexixi85/geo-seo-mcp-pro for teams integrating crawler checks into CI.

Have you caught Cloudflare's Vary: Accept Markdown negotiation or edge WAF rules injecting unexpected X-Robots-Tag headers on your own production domains?