The scanner crawls same-origin HTML pages, inspects every HTTP response against OWASP Secure Headers recommendations, checks cookie flags, and exports ready-to-paste server blocks.
| Header | Rule IDs | What the audit checks |
|---|---|---|
Strict-Transport-Security | HDR-HSTS-MISSING, HDR-HSTS-SHORT, HDR-HSTS-NO-SUBDOMAINS | Checks header presence, confirms max-age is at least one year, and verifies includeSubDomains. |
Content-Security-Policy | HDR-CSP-MISSING, HDR-CSP-WEAK | Flags missing policies, 'unsafe-inline', 'unsafe-eval', wildcards in script or default sources, and missing object-src 'none' or base-uri. |
X-Frame-Options | HDR-XFO-MISSING, HDR-XFO-INVALID | Verifies clickjacking protection through DENY, SAMEORIGIN, or CSP frame-ancestors. |
X-Content-Type-Options | HDR-XCTO-MISSING | Checks for nosniff to block MIME type sniffing across scripts and stylesheets. |
Referrer-Policy | HDR-REFERRER-MISSING, HDR-REFERRER-OK | Flags missing policies or unsafe values that leak query strings to third parties. |
Permissions-Policy | HDR-PERMISSIONS-MISSING, HDR-PERMISSIONS-OK | Checks browser feature restrictions such as camera, microphone, and geolocation. |
| Isolation headers | HDR-COOP-INFO, HDR-CORP-INFO | Reports missing Cross-Origin-Opener-Policy and Cross-Origin-Resource-Policy on documents. |
web-vuln-scanner https://example.com --fix-config nginx --view developer
web-vuln-scanner https://example.com --max-pages 15 --html headers-report.html
Passing --fix-config nginx (or caddy / apache) inspects the findings collected during the run and prints copy-pasteable directives only for headers your server actually missed.
No. By default it crawls up to 10 same-origin pages (--max-pages 10) because login forms, API gateways, and static routes often return different headers.
Browsers honor CSP frame-ancestors first, while older clients still read X-Frame-Options. Keeping both consistent avoids gaps on legacy browsers.
Fix unsafe-inline, missing object-src, and wildcard script directives.
Generate targeted server config blocks directly from scan results.
Inspect Secure, HttpOnly, and SameSite attributes on Set-Cookie headers.