SECURITY
Security header check
Check the HTTP security headers of a website: HSTS, Content Security Policy, clickjacking protection and more. The check follows all redirects, flags insecure cookies and version leaks and suggests headers for nginx, Apache and Caddy.
Frequently asked questions
Which security headers does a website need?
The most important are Strict-Transport-Security (forces HTTPS), Content-Security-Policy (limits where scripts and other resources may come from), X-Frame-Options or frame-ancestors (prevents clickjacking) and X-Content-Type-Options: nosniff. Referrer-Policy and Permissions-Policy further limit what is shared with other sites.
Why does a bare domain start with HTTP?
Visitors who type a domain into the browser often start with HTTP. The check therefore begins there, verifies the redirect to HTTPS and evaluates the headers of the final page. Enter an https:// URL to skip this step.
What does HSTS preload mean?
Browsers ship a list of domains that are only ever accessed via HTTPS, even on the very first visit. To be added on hstspreload.org, the HSTS header needs a max-age of at least one year, includeSubDomains and preload. Removal from the list takes months, so only apply once all subdomains support HTTPS.
Is X-Frame-Options still needed?
The CSP directive frame-ancestors replaces it in all current browsers. X-Frame-Options still helps very old browsers and does no harm, so many sites send both.
Why should the Server header not reveal the version?
A version number tells attackers which known vulnerabilities to try. It is no protection on its own, but hiding it costs nothing: server_tokens off in nginx, ServerTokens Prod in Apache, expose_php = Off for PHP.