analyze_security_headers
Scan a website's HTTP security headers and report which are present or missing. Provide a recommended configuration and ready-to-paste server snippets for nginx, Apache, Caddy, and Cloudflare.
Instructions
Scan a live website and report which HTTP security headers it currently sends. These headers tell the browser how to behave more safely — the main ones are HSTS (force HTTPS), Content-Security-Policy / CSP (block injected scripts and XSS), X-Frame-Options (stop clickjacking), X-Content-Type-Options (stop MIME sniffing), Referrer-Policy (limit what the URL leaks to other sites), and Permissions-Policy (turn off camera/mic/geolocation by default). Read-only — fetches the page once over HTTPS, nothing is changed. Returns: whether HTTPS works, each expected header with present/missing and its current value, a list of the ones that are missing, a recommended best-practice config, and ready-to-paste server snippets (nginx/Apache/Caddy/Cloudflare/_headers) so a beginner can just copy the fix in. Use this to audit a real site's header posture; use generate_security_headers when you just want a fresh best-practice config to apply without scanning anything first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name only, e.g. example.com (no URL, path, or port) |