Security Header Checker
Check website security headers and get recommendations to improve your site's security posture.
Use this tool to check if your website implements recommended security headers. Good security headers can protect your site from common web vulnerabilities like XSS, clickjacking, and data injection attacks.
Simply enter your website URL below, and the tool will check its HTTP response headers and provide a security score and recommendations for improvement.
About Security Headers
Security headers are HTTP response headers that, when set by a web server, can enhance the security of a website by enabling browser security features and protecting against common web vulnerabilities.
Critical Headers
- Content-Security-Policy (CSP): Helps prevent Cross-Site Scripting (XSS) and data injection attacks by controlling which resources can be loaded by the browser.
- Strict-Transport-Security (HSTS): Forces browsers to use HTTPS connections to your site, preventing man-in-the-middle attacks and SSL stripping.
Important Headers
- X-Content-Type-Options: Prevents browsers from MIME-sniffing a response away from the declared content-type, reducing the risk of drive-by downloads.
- X-Frame-Options: Protects against clickjacking attacks by disallowing your site to be embedded in frames on other sites.
Recommended Headers
- Referrer-Policy: Controls how much referrer information is included with requests, enhancing privacy.
- Permissions-Policy: Restricts which browser features and APIs can be used in a document, reducing attack surface.
- Cross-Origin headers: COEP, COOP, and CORP headers provide additional isolation for web applications.
Useful Resources
Why Security Headers Matter
-
Prevent Common Attacks
Protection against XSS, clickjacking, code injection, and other common web vulnerabilities.
-
Enforce HTTPS
Keep connections secure and prevent downgrade attacks with HSTS.
-
Enhance Privacy
Control what information is shared between sites with Referrer-Policy.
-
Improve Security Scores
Many security scanners and assessments check for these headers.