HTTP Security Headers Score & Configuration Generator

Audit HSTS, CSP, Permissions-Policy, X-Content-Type-Options, and generate server hardening configurations.

A+

Security Grade: A+ (100/100)

All 6 critical defense-in-depth security headers are enabled!

+25 points

Enforces HTTPS and protects against SSL stripping attacks.

+20 points

Prevents MIME-sniffing attacks on stylesheets and scripts.

+15 points

Blocks clickjacking by preventing external pages from embedding in iframes.

+15 points

Protects user privacy by stripping paths from referrers across domains.

+15 points

Disables invasive browser features (camera, mic, GPS) by default.

+10 points

Isolates browsing context to protect against Spectre-like memory leaks.

Generated Server Hardening Snippet

Defense-in-Depth HTTP Security Headers

Modern web browsers provide robust, built-in security features that can be activated by serving specific HTTP Response Headers. Implementing these headers shields web applications against downgrade attacks, clickjacking, MIME confusion, and cross-site leaks without requiring changes to application business logic.

The Essential Security Header Baseline

  • Strict-Transport-Security (HSTS): Forces the browser to communicate exclusively over encrypted HTTPS connections for the specified max-age duration (e.g. 1 year / 31,536,000 seconds), defeating Man-in-the-Middle SSL stripping.
  • X-Content-Type-Options: nosniff: Stops browsers from guessing the MIME type of a response, forcing strict adherence to the server's Content-Type and mitigating malicious script execution hidden within image files.
  • Referrer-Policy: strict-origin-when-cross-origin: Strips full URL query parameters and sensitive pathnames from the Referer header when transitioning between cross-origin endpoints.