Security Headers Checker
Check security HTTP headers like CSP, HSTS, X-Frame-Options, and more.
Security Headers in action
A pentest report flags your site for missing headers. Run the checker on each environment: it shows production has HSTS but staging does not — so you fix the right server instead of guessing, and re-run to produce proof for the report.
Frequently Asked Questions
What are security headers?
Security headers are HTTP response headers that help protect against common web vulnerabilities like XSS, clickjacking, and MIME sniffing. Setting them correctly is an essential part of web security best practices.
What are security headers?
They are HTTP response headers that tell the browser how to defend the page: which content sources to trust (CSP), whether to force HTTPS (HSTS), which frames are allowed (X-Frame-Options), and more. They stop large classes of attacks like XSS and clickjacking with a few lines of config.
How do I add security headers to my website?
It depends on your stack: Apache via .htaccess, Nginx via server config, Cloudflare via response header rules, or in code for frameworks. Start with HSTS and X-Frame-Options — they are one-liners — then add a CSP once you have mapped every script and style source your pages use.
What security headers does my site need at minimum?
The practical minimum: Strict-Transport-Security (force HTTPS), X-Content-Type-Options: nosniff, X-Frame-Options: DENY or SAMEORIGIN, Referrer-Policy: strict-origin-when-cross-origin, and Permissions-Policy. Add Content-Security-Policy once you can test it without breaking scripts — it is the most powerful but also the trickiest.
How do I test my security headers for free?
Enter your URL in the checker and run it — it grades every header, marks missing ones in red, and shows the exact line to add. Run it again after every server or CDN change; headers often get lost during migrations.
How do I check security headers on my website?
Enter your URL and the tool tests for HSTS, CSP, X-Frame-Options, X-Content-Type-Options, and Referrer-Policy, marking each as present or missing with a plain-language explanation.
What does Content-Security-Policy do?
CSP tells browsers which sources are allowed to load scripts, styles, and images. A strict CSP blocks injected malicious scripts (XSS attacks) even if an attacker finds a way to inject HTML into your page.
Do security headers affect SEO?
Headers themselves are not a ranking factor, but HSTS protects against downgrade attacks that could redirect your visitors elsewhere, and a hijacked site loses rankings fast. Security headers protect the traffic you already have.