Check HTTP headers

Enter a URL. The checker fetches the page, shows all response headers and rates the security headers that protect browsers against attacks such as clickjacking and content sniffing.

Why security headers matter

HTTP response headers control how the browser handles a page. Some of them are security instructions: they enforce HTTPS, forbid embedding in foreign pages, limit which scripts may run and prevent the browser from guessing file types. Without them the page is more vulnerable than it needs to be, even if the application itself is flawless.

The headers in detail

  • Strict-Transport-Security (HSTS): the browser will only connect over HTTPS from now on. Recommended: max-age=63072000; includeSubDomains; preload.
  • Content-Security-Policy (CSP): defines which sources scripts, styles and images may be loaded from. The most effective protection against cross-site scripting, but also the most laborious.
  • X-Content-Type-Options: nosniff stops the browser from guessing the content type.
  • X-Frame-Options or frame-ancestors in the CSP: prevents clickjacking through embedding in foreign pages.
  • Referrer-Policy: limits which parts of the URL are passed on to other sites. Recommended: strict-origin-when-cross-origin.
  • Permissions-Policy: disables browser features such as camera, microphone or geolocation the page does not need.

Information that should not leak

Headers such as Server: nginx/1.18.0 or X-Powered-By: PHP/8.1.2 reveal versions that attackers match against known vulnerabilities. They are not a security problem in themselves, but an unnecessary gift. In nginx: server_tokens off; in PHP: expose_php = Off.

Example for nginx

A solid starting point for a typical website:

add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;

Frequently asked questions

Will a CSP break my website?
A CSP that is too strict blocks scripts and styles. Test with Content-Security-Policy-Report-Only first, collect violations and then enforce the policy.
Is HSTS with a short max-age enough?
For the rollout, yes. For the browsers' preload list you need at least one year and includeSubDomains.
Are the headers set by Cloudflare?
Cloudflare can add them, but it does not replace the configuration at the origin. The checker shows what actually reaches the visitor.

Guides for this tool

More tools

Free tool

SPF Checker

Free SPF record check and lookup: syntax, includes, the 10 DNS lookup limit and the closing qualifier. Shows whether your domain blocks forged senders.

Open tool →
Free tool

DMARC Checker

Free DMARC record check and lookup: policy (none, quarantine, reject), pct, reporting addresses and syntax errors. With recommendations for moving to p=reject.

Open tool →
Free tool

DNS Checker

Free DNS lookup straight from the authoritative name server: A, AAAA, CNAME, MX, TXT, NS and CAA records at a glance. No sign-up, every record explained.

Open tool →
Free tool

MX Checker

Free MX lookup: which mail servers receive for a domain, do they resolve, is the priority right? Detects missing and unreachable mail servers.

Open tool →
Free tool

SSL Checker

Free SSL certificate check: expiry date, issuer, chain, host name, alternative names and TLS version. Detects expired, self-signed and mismatched certificates.

Open tool →
Free tool

Redirect Checker

Free 301 redirect check: every hop with status code and response time, from http to https, from www to non-www. Detects redirect chains, loops and 302s.

Open tool →
Free tool

DKIM Checker

Free DKIM record check and lookup: selector, key type, key length, syntax and revoked keys. Leave the selector empty to try common selectors automatically.

Open tool →
Free tool

DNSSEC Checker

Free DNSSEC test: DS record, resolver validation and broken signature chains. Shows whether validating resolvers like Google or Cloudflare reach your domain.

Open tool →
Free tool

MTA-STS Checker

Free MTA-STS check: DNS record, policy file, mode, max_age and whether your MX servers are covered. Shows whether inbound mail enforces TLS.

Open tool →
Free tool

TLS-RPT Checker

Free TLS-RPT record check: syntax, reporting addresses (rua) and common errors such as a missing record. Shows whether you get reports on TLS failures.

Open tool →
Free tool

BIMI Checker

Free BIMI record check: syntax, logo URL, SVG Tiny PS, VMC certificate and the DMARC prerequisite. Shows why your logo does not appear in Gmail.

Open tool →
Free tool

Blacklist Check

Free IP blacklist and domain blacklist check: mail server IPs, website IP and domain against Spamhaus, Spamcop, Barracuda, PSBL and SURBL. With delisting links.

Open tool →
Free tool

Domain Checker

Free domain check: expiry date, registrar, EPP status, transfer lock and name servers straight from the registry via RDAP. Warns about expiry and holds.

Open tool →