What is Security Header Checker?
A free online tool that grades your website's HTTP security headers from A+ to F. Checks 7 key headers (CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, X-XSS-Protection) with pass/fail badges and Apache/Nginx configuration examples.
Key Features
📊
A+ to F Grading
Instant overview
🔧
Config Examples
Apache & Nginx
⚡
Instant Results
Just enter a URL
How to Use
- Enter the URL you want to check (e.g.,
https://example.com) - Click "Check"
- Review the A-F grade and per-header results
- Copy the recommended configuration for any missing headers
Security Header Glossary
- Content-Security-Policy (CSP)
- Controls which resources the browser can load. Mitigates XSS and data injection attacks. Uses directives like
default-src,script-src,style-src. - Strict-Transport-Security (HSTS)
- Forces HTTPS-only connections.
max-agesets duration,includeSubDomainsextends to subdomains,preloadenables browser preload lists. - X-Frame-Options
- Prevents clickjacking by controlling iframe embedding. Use
DENYorSAMEORIGIN. - X-Content-Type-Options
- Prevents MIME type sniffing. Only valid value:
nosniff. - Referrer-Policy
- Controls referrer information sent during navigation. Recommended:
strict-origin-when-cross-origin. - Permissions-Policy
- Controls browser API access (geolocation, camera, microphone). Formerly Feature-Policy.
- X-XSS-Protection
- Legacy XSS filter control. Modern best practice: set to
0and use CSP instead.
How Security Headers Work
XSS Attacks
Attackers inject malicious scripts into web pages. CSP prevents loading unauthorized scripts.
Clickjacking
Attackers overlay transparent iframes over legitimate pages. X-Frame-Options prevents embedding.
MIME Sniffing
Browsers guess file types, potentially executing malicious files. X-Content-Type-Options: nosniff prevents this.
FAQ
- Do security headers affect SEO?
- HTTPS (related to HSTS) is a Google ranking signal. Security incidents can indirectly harm SEO.
- Do I need all headers?
- At minimum: CSP, HSTS, X-Frame-Options, and X-Content-Type-Options. The rest are strongly recommended.
- CSP broke my site
- Use
Content-Security-Policy-Report-Onlyfirst, then check DevTools for errors and adjust. - Can I set headers on shared hosting?
- Most hosts support
.htaccessheaders ifmod_headersis enabled.
- Web Development
- Network
- Text Analysis
- SNS & Entertainment
- Free Online Bingo Caller | Voice, Cards & Custom Items | No App
- No App Needed! Roulette Maker | Custom Weighted Roulette with Effects
- No App Needed! BPM Tap Tempo Counter | Delay Calculator & Metronome
- Random Team Generator | Balanced Groups with Skill Levels & Constraints
- Tournament Bracket Generator | Create Brackets & Round-Robin Tables