Home Website & Domain Tools Website Header Security Checker
🛡
Web

Website Header Security Checker — A+ to F Grade Against OWASP Standards

Get an A+ to F security grade for any website. Audits 8 critical security headers against OWASP best practices — CSP, HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and more. Includes the exact header value to add for every missing header.

🛡 A+ to F grade⚡ 8 security headers📋 Copy fix values🔒 OWASP-aligned
Switch tool: 📋 HTTP Header Checker 🔐 HTTP to HTTPS Redirect Checker 📣 Open Graph Checker 📏 Page Size Checker ⛓ Redirect Chain Checker ↪ Redirect Checker 🗺 Sitemap Validator 🛡 Website Header Security Checker
🛡

Audits 8 critical security headers against OWASP recommendations. Enter any page on your site.

📖How to Use the Website Header Security Checker

  1. 1
    Enter your website URL

    Enter any live webpage URL — the tool fetches the actual HTTP response headers exactly as your server sends them, just like a browser would see.

  2. 2
    Review your security grade

    Your site receives a letter grade from A+ to F based on how many security headers are present and correctly configured. Each header shows its current value, what attack it prevents, and a pass/warn/fail status.

  3. 3
    Fix missing headers

    Every missing or misconfigured header shows the exact recommended value to add — click Copy to grab it. Pass this to your server admin or add it to your nginx/Apache config, CDN settings, or application middleware. Then re-check to confirm your grade has improved.

🔑Quick Reference

HeaderProtects Against
Content-Security-PolicyXSS attacks
Strict-Transport-SecurityDowngrade attacks
X-Frame-OptionsClickjacking
X-Content-Type-OptionsMIME sniffing
Referrer-PolicyData leakage
Permissions-PolicyFeature abuse
🛡

Free Security Headers Checker: What HTTP Security Headers Are and Why Your Site Needs Them

The invisible layer of protection that separates secure websites from vulnerable ones

HTTP security headers are response headers that your server sends to browsers alongside every page. They are invisible to regular visitors but act as a set of strict instructions that tell browsers exactly what they are and are not allowed to do on your website. Without them, browsers operate in a permissive default mode that leaves your site open to a range of well-documented attacks.

Security headers cost nothing to implement. They require no third-party service. They take minutes to add to a server configuration file. Yet most websites are missing most or all of them. A missing Content Security Policy leaves your site open to cross-site scripting attacks. A missing Strict-Transport-Security header leaves users vulnerable to protocol downgrade attacks even on HTTPS sites. A missing X-Frame-Options header lets attackers embed your pages in invisible iframes to hijack user clicks.

44.2%
Of websites score an F grade for missing security headers
2.3%
Of websites achieve the top A+ security header grade
8
Critical security headers audited by the Visiblytics checker

Security headers are also a trust signal. Browsers, security scanners, enterprise procurement tools, and even some search engine crawlers check for their presence. A website missing critical security headers can be flagged as insecure by browser security extensions, corporate network filters, and vulnerability scanners used by potential clients or partners. For any site handling user data, running e-commerce, or operating in a regulated industry, missing security headers is a compliance risk as well as a security risk.

The first step is knowing where you stand. The Visiblytics Website Header Security Checker audits your site against the eight most critical security headers defined by OWASP, gives you a letter grade from A+ to F, and shows you the exact header value to copy and add for every missing header. You can go from an F grade to an A grade in the same afternoon.

Common misconception: having an SSL certificate and serving your site over HTTPS does not mean your security headers are configured. HTTPS encrypts data in transit. Security headers control browser behaviour on your site. They are two completely separate layers of protection and you need both.
📋

Security Headers List: The 8 OWASP Headers This Tool Checks and What Each One Prevents

Every header explained in plain English with the attack it prevents and why it matters

The Visiblytics Website Header Security Checker audits eight headers defined by OWASP as the most critical for web application security. For each one the tool shows whether it is present, what its current value is, what attack it prevents, and the exact recommended value to add if it is missing.

Content-Security-Policy
Prevents: XSS attacks
The most powerful security header. Tells the browser exactly which sources are allowed to load scripts, styles, images and other resources. A well-configured CSP blocks injected malicious scripts from executing even if an attacker finds a way to inject them into your page.
Strict-Transport-Security
Prevents: Protocol downgrade, MITM attacks
Tells browsers to always connect to your site over HTTPS, even if the user types http://. Once seen, the browser refuses HTTP connections entirely for the duration of the max-age period, preventing downgrade attacks and cookie hijacking on public networks.
X-Frame-Options
Prevents: Clickjacking
Prevents your page from being loaded inside an iframe on another domain. Without this header, attackers can overlay an invisible iframe on a malicious page, tricking users into clicking your buttons, making purchases, or submitting forms without realising it.
X-Content-Type-Options
Prevents: MIME type sniffing
Setting this to nosniff stops browsers from guessing the content type of a response. Without it, browsers may interpret an uploaded text file as executable JavaScript, enabling MIME confusion attacks. One of the simplest headers to add with no downsides.
Referrer-Policy
Prevents: Referrer data leakage
Controls how much referrer information is included when a user navigates from your site to another. Without this header, the full URL of every page your users visit can be leaked to external sites, exposing user journeys, internal URLs, and potentially sensitive parameters.
Permissions-Policy
Prevents: Unwanted browser feature access
Controls which browser features and APIs your page and embedded third-party iframes are allowed to access, including camera, microphone, geolocation, and payment. Restricting these prevents malicious third-party scripts from silently accessing sensitive device features.
Server
Risk: Server info leakage
The Server header reveals your web server software and version (e.g. nginx/1.24.0). Attackers use this to target known vulnerabilities in specific versions. The tool flags this header as an information leakage warning if it is present and recommends removing or obscuring it.
X-Powered-By
Risk: Technology stack leakage
Reveals the technology stack your application runs on (e.g. PHP/8.2.1, ASP.NET). This information helps attackers identify framework-specific vulnerabilities. It provides no benefit to users and should be removed from every production server configuration.
How the A+ to F grade is calculated: the tool starts at 100 points. Missing critical headers (CSP, HSTS, X-Content-Type-Options, X-Frame-Options) each deduct 20 points. Missing medium-priority headers (Referrer-Policy, Permissions-Policy) each deduct 10 points. Server information leakage via Server or X-Powered-By deducts 5 points each. The final score maps to A+ (95 and above), A (85 and above), B (70 and above), C (55 and above), D (40 and above), and F (below 40).

Security Grade Scale

A+
95-100
All critical headers present and correctly configured
A
85-94
Strong security posture, minor gaps only
B
70-84
Good base, one or two headers missing
C
55-69
Several headers missing, action needed
D
40-54
Most headers missing, high risk
F
Below 40
Critical headers absent, immediate action required
🔧

How to Add Security Headers in Nginx, Apache, Cloudflare and WordPress

Step-by-step instructions to fix every missing header the checker finds

The Visiblytics checker shows the exact recommended header value for every missing header with a one-click copy button. Once you have copied the value, the method of adding it depends on how your site is hosted and configured. Here are the steps for the four most common setups.

1
Run the checker and note every missing header Enter your website URL and review the results. Every header showing a red fail badge is missing. Click the Copy button next to each recommended value to grab it. Start with the four critical headers: Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, and X-Content-Type-Options.
2
For nginx: add headers to your server block Open your nginx configuration file (typically /etc/nginx/sites-available/your-site). Inside the server block, add each header using the add_header directive. For example: add_header X-Content-Type-Options “nosniff” always; Run nginx -t to test the configuration and then sudo systemctl reload nginx to apply it.
3
For Apache: add headers to .htaccess or httpd.conf Open your .htaccess file in the root of your site or your httpd.conf. Inside an IfModule mod_headers.c block, add each header using Header set or Header always set. For example: Header always set X-Frame-Options “DENY”. Save the file — Apache applies changes immediately without a restart for .htaccess.
4
For Cloudflare: use Transform Rules Log in to your Cloudflare dashboard, go to Rules, then Transform Rules, then Modify Response Header. Create a new rule, set the action to Add, and enter the header name and value. Cloudflare applies the header to all responses passing through its network. This method works regardless of your origin server setup.
5
For WordPress: use a security plugin or functions.php Install a plugin like Headers Security Advanced and HSTS WP or add headers directly in your theme’s functions.php using add_action on send_headers. Alternatively, add the headers to your .htaccess if your host uses Apache. After adding headers by any method, re-run the Visiblytics checker to confirm your grade has improved.
Important note on Content-Security-Policy: CSP is the one header that requires careful configuration for your specific site. A CSP that is too restrictive can break legitimate functionality such as Google Analytics, embedded fonts, or payment widgets. Start with a report-only mode to test your policy before enforcing it, and build the policy incrementally based on what your site actually loads.
👥

Who Needs to Check Their Security Headers

Every website type that handles users, data, or transactions has something to lose from missing headers

Security headers are not just a concern for large enterprises or technical developers. Every website that has users interacting with it has something to protect. Here is how different types of website owners benefit from checking and fixing their security headers.

WordPress Site Owners

WordPress powers over 40 percent of all websites on the internet and is the most targeted CMS by attackers. Most WordPress installations ship with no security headers configured by default. The server, X-Powered-By, and sometimes the WordPress version itself are all exposed in HTTP headers out of the box. Running the checker on a fresh WordPress installation almost always returns an F grade. Fixing this takes under 30 minutes with a plugin or a few lines in .htaccess.

E-Commerce Stores

Online stores processing payments are high-value targets for Magecart and similar card-skimming attacks, which typically work by injecting malicious JavaScript into checkout pages. A properly configured Content-Security-Policy that restricts which scripts are allowed to execute is one of the most effective defences against this type of attack. PCI DSS compliance guidance also references security headers as part of a secure web application configuration.

SaaS Applications and Web Apps

Applications with user login, sessions, and sensitive data have the most to lose from XSS and clickjacking attacks. A missing CSP on a SaaS application means that if an attacker finds any XSS vector, they can execute arbitrary JavaScript in the context of an authenticated user session. For any application handling personal data, missing security headers may also constitute a failure to implement reasonable technical security measures under GDPR.

Agencies and Developers

Checking security headers on every site you build or manage is part of a responsible handover and ongoing maintenance process. Use the Visiblytics checker to run a quick audit before every site launch and after every major platform update. The copy-fix values feature means you can grab the exact recommended header string and drop it into the server configuration without needing to look anything up.

⚖️

The Best securityheaders.com Alternative: Visiblytics vs securityheaders.com vs SerpWorx

The honest feature-by-feature comparison of the three most used free security header checkers

There are three tools most commonly used to check website security headers. securityheaders.com is the most established, SerpWorx is widely linked to, and the Visiblytics checker is the newest but the most actionable of the three. Here is what each one actually does.

Feature Visiblytics securityheaders.com SerpWorx
Letter grade (A+ to F) ✓ Yes ✓ Yes ✗ Numeric score only
Attack type explained per header ✓ Every header ✗ Not shown ✓ Partial descriptions
Exact fix value with copy button ✓ Every missing header ✗ Not provided ✓ Code snippets shown
Validates header values vs best practices ✓ OWASP-aligned ✓ Yes ✗ Presence only, no validation
Server info leakage detection ✓ Server and X-Powered-By flagged ✓ Yes ✗ Not checked
Results public by default ✓ Private by default ✗ Public unless hidden ✓ Private
Part of a full SEO and web toolkit ✓ 650+ free tools, no login ✗ Security headers only ✗ Limited free tools
Login required ✓ Never ✓ Not required ✓ Not required

The most important row in this table is header value validation. SerpWorx explicitly states on its own tool page that it only detects the presence of a header, not whether its value follows best practices. That means a Content-Security-Policy set to wildcard or an HSTS header with a max-age of zero will pass SerpWorx’s check even though both represent serious misconfigurations. The Visiblytics checker and securityheaders.com both validate header values against published best practices, giving you a result you can actually trust.

The other notable difference is that securityheaders.com makes your scan results public by default and shows them in a global recent scans feed. If you are auditing a site with a poor security posture and prefer not to advertise that publicly, the Visiblytics checker keeps your results private by default.

Check your security grade now. Enter your URL above, get your A+ to F grade in seconds, and copy the exact fix values for every missing header — completely free, no account needed, results stay private.

Frequently Asked Questions

How is the security grade calculated?

The grade starts at 100 points. Missing critical headers (CSP, HSTS, X-Content-Type-Options, X-Frame-Options) each deduct 20 points. Missing medium-priority headers (Referrer-Policy, Permissions-Policy) deduct 10 points. Server information leakage (X-Powered-By, detailed Server header) deducts 5 points each. The final score maps to A+ (95+), A (85+), B (70+), C (55+), D (40+), F (below 40).

What is Content-Security-Policy (CSP) and why is it the most important header?

CSP is the single most powerful security header. It tells the browser exactly which sources are allowed to load scripts, styles, images and other resources. A well-configured CSP prevents Cross-Site Scripting (XSS) attacks — one of the most common web vulnerabilities — by blocking execution of injected malicious scripts.

What is HTTP Strict Transport Security (HSTS)?

HSTS tells browsers to always connect to your site over HTTPS — even if the user types http://. Once a browser has seen your HSTS header, it refuses to connect over HTTP at all, preventing protocol downgrade attacks and cookie hijacking. The recommended min-age is 31536000 (1 year) with includeSubDomains.

What does X-Frame-Options protect against?

X-Frame-Options prevents your page from being embedded in an iframe on another website. Without it, attackers can overlay an invisible iframe on a malicious page that tricks users into clicking your buttons — a technique called clickjacking. The Content-Security-Policy frame-ancestors directive offers more granular control and is the modern replacement.

What is X-Content-Type-Options?

Setting this header to nosniff prevents browsers from MIME-type sniffing — guessing what type of content a response contains. Without it, a browser might interpret an uploaded text file as executable JavaScript. This header is one of the simplest to add and should be on every production website.

How do I add security headers to my website?

The method depends on your server: For nginx, add header directives to your server block. For Apache, use Header set directives in .htaccess or httpd.conf. For Cloudflare, use Transform Rules. For WordPress, many security plugins add headers automatically. For Node.js, use the Helmet middleware. This checker shows the exact header name and recommended value to configure.