Security & DevSecOps

Website Security Header Scanner & CSP Analyser

Instant client-side security header auditor and Content Security Policy (CSP) analyser.

Audit Target & Headers

Security Audit Results

8 / 8 Headers Active
A+
Excellent Security Posture
Security Score: 100 / 100

All high-value protective headers are correctly configured. Robust defenses against XSS, clickjacking, and SSL downgrades.

Strict-Transport-Security (HSTS) PASS (+20 pts)

max-age=63072000; includeSubDomains; preload

Forces browser HTTPS connection for 2 years with preloading support. Defends against SSL stripping.
Content-Security-Policy (CSP) PASS (+25 pts)

default-src 'self'; script-src 'self'; style-src 'self'...

Restricts script origins and execution contexts, preventing unauthorized cross-site scripting (XSS).
X-Frame-Options PASS (+15 pts)

DENY

Prevents the site from being rendered within foreign frames or iframes, mitigating clickjacking.
X-Content-Type-Options PASS (+10 pts)

nosniff

Instructs browsers not to sniff MIME types away from the declared Content-Type, mitigating drive-by downloads.
Referrer-Policy PASS (+10 pts)

strict-origin-when-cross-origin

Limits leaking sensitive query parameters or paths to external domains across HTTP/HTTPS boundaries.
Permissions-Policy PASS (+10 pts)

camera=(), microphone=(), geolocation=()...

Restricts browser hardware APIs and sensors, ensuring no third-party scripts access camera or microphone.
Cross-Origin Isolation (COOP / CORP) PASS (+10 pts)

Cross-Origin-Opener-Policy: same-origin

Isolates your browsing context from opener windows, neutralizing Spectre-style side-channel attacks.

Quick Fix Server Config Generator

# Add to Nginx server block:
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "DENY" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;

About this tool

How to use it

  1. Select a preconfigured server profile or paste your site's raw HTTP response headers directly from Chrome DevTools or curl -I.
  2. Inspect the overall security score and letter grade (A+ through F) based on OWASP and Mozilla Observatory evaluation standards.
  3. Review individual header breakdowns for Content-Security-Policy (CSP), HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy.
  4. Expand any failing or warning header to read vulnerability remediation guidance and risk analysis.
  5. Switch to the Fix Generator tab to generate drop-in configuration snippets for Nginx, Apache .htaccess, Cloudflare, or Node.js Express Helmet.

Why it matters

Modern web application attacks like Cross-Site Scripting (XSS), clickjacking, MIME-type confusion, and protocol downgrade attacks can often be prevented simply by deploying well-configured HTTP security headers. This client-side scanner provides instant diagnostics, scoring, and production-ready server configuration snippets without leaking your server headers to third parties.

When to use it

Use when auditing new website deployments, preparing for SOC 2 or ISO 27001 compliance reviews, hardening cloud reverse proxies, or troubleshooting strict CSP violations.

Common questions

What is the most critical HTTP security header to implement?

Strict-Transport-Security (HSTS) and Content-Security-Policy (CSP) are considered the most impactful. HSTS prevents SSL-stripping and man-in-the-middle attacks, while CSP prevents cross-site scripting (XSS) and malicious script injection.

Why does clickjacking occur without X-Frame-Options or CSP frame-ancestors?

Without frame restrictions, malicious websites can embed your application inside a transparent iframe, tricking authenticated users into clicking buttons or submitting forms without their knowledge.

What is the difference between X-Frame-Options and CSP frame-ancestors?

X-Frame-Options is an older legacy header supporting only DENY and SAMEORIGIN. CSP's frame-ancestors directive is modern, flexible, supports multiple allowed parent domains, and overrides X-Frame-Options in modern browsers.

Does this tool run privately without sending server headers to external servers?

Yes! All header parsing, regex analysis, OWASP scoring, and web server configuration generation runs 100% locally inside your web browser's JavaScript sandbox.