Audit HTTP Headers
audit_headersAudit a public HTTPS URL the user deployed — security grade A–F, SSL, headers, cookies, health (ALIVE/DEGRADED/BROKEN), exposed secrets, tech stack. Read plain_summary first; only drill into security_headers or secrets if grade is poor. quick ~1–3s; scan_depth=deep for secret scan (~8–12s). 6 credits hosted. Call when user pastes a live URL — post-deploy check, is it secure, what framework, exposed keys. Blocks localhost/private IPs. NOT for repo code (find_code), packages (check_package), tests (check_test), or project layout (get_project_context). Example: audit_headers({ url: 'https://myapp.vercel.app' }). Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public https:// URL to audit — e.g. https://myapp.vercel.app or https://zephex.dev | |
| path | No | Optional subpath (e.g. /checkout) — appended to url | |
| focus | No | Trim output layers (default: all) | |
| check_ssl | No | Check SSL certificate validity, expiry, and protocol (default: true) | |
| scan_mode | No | quick=~1-3s (default); thorough=DNS+APIs+secrets ~5-12s | |
| check_apis | No | Probe /api/health and common API paths — adds ~1-2s (default: false) | |
| check_tech | No | Tech stack: framework, hosting, CDN, third-party (default: true) | |
| scan_depth | No | quick=light scan, 3 bundles (default); deep=full supply URL phase with JWT decode, source maps, verification (~8-12s) | |
| timeout_ms | No | Max scan time in ms (default: 8000, max: 15000) | |
| check_health | No | Site health: verdict, trust score, load time, page title (default: true) | |
| probe_engine | No | fetch=HTTP only (default); browser=headless Chrome on Zephex servers for console errors + browser network (falls back to fetch with warning if unavailable) | |
| check_cookies | No | Check cookie Secure/HttpOnly/SameSite flags (default: true) | |
| check_headers | No | Grade all security headers and return fix snippets when include_fix_snippets=true (default: true) | |
| check_network | No | HTTP network timing table — slow requests, API probes (default: true) | |
| check_secrets | No | Secret scan: HTML/JS keys, exposed .env/.git, GraphQL (default: true; depth via scan_depth) | |
| security_depth | No | basic=fast (default); full adds DNS SPF/DMARC/DKIM + HSTS preload lookup | |
| check_redirects | No | Follow and audit the full redirect chain (default: true) | |
| include_fix_snippets | No | Include Nginx/Vercel/Next fix snippets — token-heavy (default: false) |