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. It also shows whether the website speaks HTTP/1.1, HTTP/2 or HTTP/3.

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.

HTTP/2 and HTTP/3

Besides the headers the checker shows the negotiated HTTP version. The request offers HTTP/2 to the server; if it only answers with HTTP/1.1, HTTP/2 is not enabled. That is not a security flaw, but a wasted optimisation: HTTP/2 loads all resources of a page over a single connection. In nginx, listen 443 ssl http2; is enough, in Apache Protocols h2 http/1.1.

HTTP/3 runs over QUIC (UDP 443) and is announced in the Alt-Svc header (h3=":443"). "HTTP/3 advertised" means the header is set; "HTTP/3 available" means a second request restricted to HTTP/3 actually got an answer. If it stays at "advertised", a firewall often blocks UDP port 443 or the checking location could not test HTTP/3.

Example for nginx

A solid starting point for a typical website:

Text
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.
Monitor continuously
Monitor the websites of all client domains continuously

Website monitoring for agencies: DomainWarn checks availability, status code, response time, redirects, IPv6, headers and content of all client websites.

More about monitoring

Guides for this tool

More tools

Free tool

Domain Check

Check website, email, DNS and domain in one run: 13 checks, a score from 0 to 100 per area and overall, with recommendations. Free, no sign-up required.

Open tool →
Free tool

Email Check

Check SPF, DKIM, DMARC and MX of a domain in one run, free and without sign-up. Shows whether your mail meets the Google and Yahoo sender requirements.

Open tool →
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: 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 and TLS version, mail servers too. 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 and Cloudflare still reach you.

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 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: WHOIS data via RDAP straight from the registry, expiry date, registrar, EPP status, transfer lock and name servers. Warns before expiry.

Open tool →