Is Your Site Blocking ChatGPT and Claude? Auditing llms.txt, AI Bots & SSL Expiry via API

2026-11-28来源 dev.toEnglish

In 2026, classic Google meta-tags are only half of technical site visibility. Engineering teams, SaaS founders, and SEO agencies increasingly ask a different question: can AI search engines actually read and cite our site, and are our security headers and TLS certificates healthy?

Common blind spots we keep seeing on production SaaS domains:

  • Strict CDN or WAF templates silently insert Disallow: / for GPTBot, ClaudeBot, or PerplexityBot inside robots.txt.
  • Teams forget to add /llms.txt, leaving AI coding and search agents guessing which docs or product pages are canonical.
  • Security scanners flag missing HSTS, CSP, Referrer-Policy, or an expiring TLS certificate right before an enterprise procurement check.

To automate this across outbound lead lists or CI pipelines without spinning up Puppeteer, we built Website SEO, AI-Search (llms.txt) & Security Audit API.

What a Complete SEO + GEO + Security Check Inspects

A single lightweight (256 MB RAM) async pass evaluates three pillars and computes deterministic 0–100 scores:

  1. On-Page Technical SEO (seoScore):
    • HTTP status, canonical redirect destination, and response latency (responseTimeMs).
    • <title> and meta description presence plus character bounds, canonical link, H1/H2 counts, missing image alt tags, internal vs. external link ratio, OpenGraph/Twitter Card, and extracted Schema.org JSON-LD @type entities.
  2. AI Search / GEO Readiness (aiGeoScore):
    • Fetches /robots.txt and evaluates per-bot precedence over * wildcard rules for GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, PerplexityBot, and Google-Extended.
    • Verifies /llms.txt (checking HTTP 200 and ensuring it isn't a soft-404 HTML page!) and /sitemap.xml.
  3. Live TLS & HTTP Security Headers (securityScore):
    • Opens an async TLS socket directly to port 443 to inspect live certificate validity, issuer, and exact sslDaysRemaining.
    • Checks Strict-Transport-Security (HSTS), Content-Security-Policy (CSP), X-Frame-Options (or CSP frame-ancestors), X-Content-Type-Options: nosniff, and Referrer-Policy.

Verified Audit Comparison: stripe.com vs anthropic.com vs linear.app

Calling the API directly via HTTP cURL:

curl -sS -H "Authorization: Bearer YOUR_APIFY_TOKEN" \ "https://whthpnd--seo-geo-security-audit-api.apify.actor/v1/audit?domain=anthropic.com" 

Observed batch results across the three reference domains:

Domain Overall SEO AI GEO Security llms.txt Blocked AI Bots SSL Days Left
stripe.com 95 85 100 100 true [] 165
linear.app 94 82 100 100 true [] 77
anthropic.com 83 76 80 92 false [] 67

Sample JSON returned for anthropic.com via /v1/geo:

{ "input": "anthropic.com", "domain": "anthropic.com", "reachable": true, "statusCode": 200, "responseTimeMs": 74, "finalUrl": "https://www.anthropic.com/", "overallScore": 78 } 

And every audit emits a structured issues array (e.g., missing_llms_txt, missing_hsts, images_missing_alt_3) ready to feed directly into agency personalization or Slack/Notion alerts.

Connect via Remote MCP (Cursor / Claude) or n8n

The Actor exposes 3 Streamable HTTP MCP tools (audit_website_full, check_ai_geo_readiness, audit_ssl_and_security_headers) at /mcp:

{ "mcpServers": { "seo-geo-security-audit": { "url": "https://whthpnd--seo-geo-security-audit-api.apify.actor/mcp", "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" } } } } 

You can also import our pre-built n8n SEO + llms.txt Audit Workflow JSON (Manual Trigger → Audit Domain → Alert if overallScore < 85) from the GitHub showcase:

原文:https://www.a8q9.cn/en/article/is-your-site-blocking-chatgpt-and-claude-auditing-llms-txt-ai-bots-ssl-expiry-vi-203a74.html

相关文章