Ambiakshi TechnologyTOOLS
All developer tools
developer Utility Updated: Current (OWASP Secure Headers & CSP Level 3 Standards)

HTTP Security Headers & SSL Scanner

Evaluate domain defensive posture from A+ to F across CSP, HSTS, X-Frame-Options, and Permissions-Policy with 1-click ready-to-copy code fixes for Next.js, Nginx, Apache, and Cloudflare Workers.

#Security#OWASP#DevOps#NextJS#Nginx#Cloudflare
OWASP & RFC Security Header Compliance
Quick Samples:
A88/100

Grade A Security Posture

Optimal

6 passing, 1 warnings, 1 missing

Audit Breakdown8 Headers
6Passing
1Weak
1Missing
Server Fingerprint Exposure
Server Banner:Hidden (Optimal)
X-Powered-By:Hidden (Optimal)
🛡️ Server technology fingerprint is shielded

Strict-Transport-Security (HSTS)

Forces browsers to exclusively connect over HTTPS, preventing SSL stripping and man-in-the-middle attacks.
Active (+20 pts)
Current Value on Server:max-age=63072000; includeSubDomains; preload
Recommended Setting:max-age=63072000; includeSubDomains; preload
Remediation: Set max-age to at least 1 year (31536000), enable includeSubDomains and preload.

Content-Security-Policy (CSP)

Restricts sources from which scripts, styles, images, and other resources can be loaded, neutralizing XSS and data injection.
Weak Policy (+25 pts)
Current Value on Server:default-src 'self'; script-src 'self' 'unsafe-inline' https:; style-src 'self' 'unsafe-inline' https:; img-src 'self' data: https:; font-src 'self' https:;
Recommended Setting:default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:;
Remediation: Define a strict default-src policy and whitelist only trusted external asset domains.

X-Frame-Options

Prevents malicious sites from embedding your web application inside an <iframe>, defending against clickjacking attacks.
Active (+15 pts)
Current Value on Server:DENY
Recommended Setting:DENY or SAMEORIGIN
Remediation: Set X-Frame-Options: DENY or SAMEORIGIN, or configure CSP frame-ancestors.

X-Content-Type-Options

Instructs browsers not to MIME-sniff response bodies away from the declared Content-Type.
Active (+10 pts)
Current Value on Server:nosniff
Recommended Setting:nosniff
Remediation: Always set X-Content-Type-Options: nosniff.

Referrer-Policy

Controls how much referrer information (URL paths, sensitive query parameters) is shared with third-party sites.
Active (+10 pts)
Current Value on Server:strict-origin-when-cross-origin
Recommended Setting:strict-origin-when-cross-origin
Remediation: Use 'strict-origin-when-cross-origin' to share only domain origins on cross-site HTTPS requests.

Permissions-Policy

Disables intrusive browser APIs and hardware features (Camera, Microphone, USB, Geolocation) by default.
Active (+10 pts)
Current Value on Server:camera=(), microphone=(), geolocation=()
Recommended Setting:camera=(), microphone=(), geolocation=(), browsing-topics=()
Remediation: Restrict hardware APIs that your application does not require.

Cross-Origin-Opener-Policy (COOP)

Isolates top-level browsing context to prevent Spectre-like side-channel attacks across windows.
Active (+5 pts)
Current Value on Server:same-origin
Recommended Setting:same-origin
Remediation: Set to 'same-origin' or 'same-origin-allow-popups' for secure process isolation.

Cross-Origin-Resource-Policy (CORP)

Blocks no-cors cross-origin reads of static assets and sensitive data.
Missing (+5 pts)
Current Value on Server:Header not present
Recommended Setting:same-origin
Remediation: Set Cross-Origin-Resource-Policy: same-origin or same-site.

Defensive Posture & Web Security Guarantee

Header auditing evaluates adherence to OWASP Top 10 recommendations and modern browser security primitives (HSTS preload, CSP Level 3, COOP/COEP process isolation).

Technical & Statutory Standard: Zero sensitive token inspection; scans only public HTTP response headers.

Comprehensive Technical Guide & Reference

3 Topics

Scan any live domain or simulate headers manually to compute an A+ to F security health score, identify missing defensive headers, and export configuration snippets for major web servers.

11. Step-by-Step: How to Audit & Harden HTTP Headers

Strengthen your web application's defensive security posture:

  • Scan Domain: Enter any website URL to fetch and evaluate response headers in real time.
  • Inspect Security Grade: Review your overall letter grade (A+ down to F) with granular weights assigned across 6 core defensive headers.
  • Identify Missing Protections: Review actionable vulnerability explanations for missing CSP, HSTS, or anti-clickjacking headers.
  • Deploy 1-Click Server Fixes: Switch to the '1-Click Code Fixer' tab and copy production configurations for Next.js `next.config.ts`, Nginx `nginx.conf`, Apache `.htaccess`, or Cloudflare Workers.

22. Technical Explanation: The 6 Critical Defense-in-Depth Headers

Modern browsers enforce strict security boundaries based on instructions delivered via HTTP response headers:

  • Strict-Transport-Security (HSTS): Enforces HTTPS connections and disables insecure downgrade attacks (`max-age=31536000; includeSubDomains; preload`).
  • Content-Security-Policy (CSP): Restricts executable script, stylesheet, and frame origins, blocking Cross-Site Scripting (XSS) and data exfiltration.
  • X-Frame-Options: Prevents clickjacking by controlling whether the site can be embedded in an `<iframe>` (`DENY` or `SAMEORIGIN`).
  • X-Content-Type-Options: Prevents MIME-type sniffing of user-uploaded assets (`nosniff`).
  • Referrer-Policy: Prevents sensitive token leakage in the HTTP Referer header (`strict-origin-when-cross-origin`).
  • Permissions-Policy: Disables camera, microphone, and geolocation hardware APIs by default.

33. Content Security Policy (CSP Level 3) Best Practices

Transition from legacy `unsafe-inline` scripts to modern nonce-based CSP policies (`script-src 'nonce-...' 'strict-dynamic'`) to safeguard single-page applications.

Frequently Asked Questions

An A+ grade requires HSTS with max-age >= 1 year, includeSubDomains, preload, a robust Content-Security-Policy (CSP), X-Frame-Options, X-Content-Type-Options, and hidden server version banners.

Related & Recommended Tools