Security Headers Checker

Scan any URL and get a full HTTP security header audit with grades, attack risk explanations, and copy-paste fixes.

Free, no costNo signup requiredServer-side scan

What are HTTP security headers?

HTTP response headers that instruct browsers how to behave when handling your site's content — covering content sources (CSP), HTTPS enforcement (HSTS), clickjacking protection (X-Frame-Options), and more. Getting these headers right is one of the most impactful and lowest-effort security improvements you can make to any web application. This tool fetches your URL server-side, inspects every relevant header, scores each one, and generates copy-paste config snippets for Nginx, Apache, Vercel, Cloudflare Workers, and Next.js.

Why Content-Security-Policy is the hardest header to get right

CSP is the most powerful security header but also the most complex. A policy that includes 'unsafe-inline' or 'unsafe-eval' in script-src provides little protection against XSS. The checker flags these dangerous directives, checks for a frame-ancestors clause (making X-Frame-Options redundant), and verifies that object-src is restricted to prevent plugin-based attacks.

HSTS preload: the highest level of HTTPS enforcement

Strict-Transport-Security with max-age, includeSubDomains and the preload directive qualifies your domain for submission to browser preload lists — meaning browsers will never connect over HTTP even on the first visit, before they have seen your HSTS header. The checker verifies all three and flags a low max-age that might let the HSTS record expire before the next visit.

Stack detection and information leakage

Headers like Server, X-Powered-By, X-AspNet-Version and X-AspNetMVC-Version tell attackers exactly which software version you are running, making targeted exploit searches trivial. The Raw Headers tab identifies these leaks and the Fix It snippets show how to suppress them on each platform.

Additional Information

x-xss-protectionX-XSS-Protection sets the configuration for the XSS Auditor built into older browsers. Setting "X-XSS-Protection: 0" disables the deprecated auditor so modern sites can rely on Content Security Policy instead.
report-toReport-To enables the Reporting API, allowing a website to collect structured reports from the browser about CSP violations, deprecations, and other client-side errors.
nelNetwork Error Logging instructs the browser to send telemetry reports when network or application errors prevent a page or asset from loading.
strict-transport-securityHTTP Strict Transport Security strengthens your TLS implementation by instructing browsers to always enforce HTTPS connections and prevent protocol downgrade attacks.
content-security-policyContent Security Policy is an effective defence against XSS and data injection attacks. By allowlisting approved sources of scripts, styles, and media, it stops browsers from executing untrusted assets.
permissions-policyPermissions Policy lets a site strictly control which powerful browser features and APIs—such as camera, microphone, and geolocation—may be used on the page or inside iframes.
referrer-policyReferrer Policy controls how much URL referrer information the browser sends along when navigating away from a document or fetching cross-origin resources.
x-content-type-optionsX-Content-Type-Options stops browsers from MIME-sniffing the response content type and forces them to honour the declared Content-Type header. The only valid value is "nosniff".
x-frame-optionsX-Frame-Options tells browsers whether your site is allowed to be embedded in a frame or iframe, helping defend users against clickjacking attacks.
serverServer identifies the software handling the request (for example "nginx" or "Apache"). Hiding detailed version numbers reduces information leakage.

Frequently asked questions

What are security headers?

HTTP response headers that instruct browsers how to behave when handling your site's content — covering content sources (CSP), HTTPS enforcement (HSTS), clickjacking protection (X-Frame-Options), and more.

What is a good security header score?

A score of 80+ (grade A) is solid. A+ (90+) means you've implemented all major headers with strict values including HSTS preload and a restrictive CSP.

Does this tool trigger any requests on my server?

Yes — the checker makes a single GET request from our server to your URL and reads the response headers. No forms are submitted and no payloads are sent.

My site got an F — what should I fix first?

Start with Strict-Transport-Security (HSTS) and X-Content-Type-Options — they're easy to add and have high impact. Then tackle Content-Security-Policy, which requires the most tuning.