HTTP Headers Checker
See every response header a page sends and get a security grade from A+ to F, with the exact header to add for each gap.
The check runs from this website's server. It only reaches public addresses, sends no cookies and keeps nothing.
How to check a site's HTTP headers
- Enter an address and choose Check headers.
- See the security grade and, for each missing or weak header, what it protects against and the line to add.
- Open All response headers for the full list, including caching, compression and cookies.
The headers that matter most
| Header | What it does | Starting value |
|---|---|---|
| Strict-Transport-Security | Makes browsers use HTTPS for your site, even when someone types http://. | max-age=31536000; includeSubDomains |
| Content-Security-Policy | Lists where scripts, styles and frames may come from. The main defence against cross-site scripting. | default-src 'self' |
| X-Frame-Options | Stops other sites showing your pages in a frame (clickjacking). | SAMEORIGIN |
| X-Content-Type-Options | Stops browsers guessing file types, so an upload can't run as a script. | nosniff |
| Referrer-Policy | Controls how much of your address is sent to sites you link to. | strict-origin-when-cross-origin |
| Permissions-Policy | Switches off browser features you don't use. | camera=(), microphone=(), geolocation=() |
Start the Content-Security-Policy in report-only mode: a strict policy copied from elsewhere will block parts of most sites.
Frequently asked questions
What are HTTP security headers?
Instructions a server sends with every page that tell the browser to be stricter: always use HTTPS (HSTS), only run scripts from listed places (Content-Security-Policy), never show the page inside another site's frame (X-Frame-Options), and so on. They cost nothing to add and block whole classes of attacks.
How is the grade worked out?
Six headers carry points: Strict-Transport-Security and Content-Security-Policy 25 each, X-Frame-Options (or frame-ancestors) and Referrer-Policy 15 each, X-Content-Type-Options and Permissions-Policy 10 each. 95 points or more is A+, 85 is A, 70 is B, 55 is C, 40 is D and 25 is E. Weak settings get partial points.
How do I add security headers?
On Apache or LiteSpeed, add Header set lines to .htaccess (the .htaccess generator writes them for you). On Nginx use add_header in the server block. On Cloudflare, use a Transform Rule; WordPress plugins and most hosting panels can add them too.
Will a Content Security Policy break my site?
It can, if it blocks a script or style the site needs. Send it first as Content-Security-Policy-Report-Only: nothing is blocked, and the browser console lists what would have been. Adjust until it is quiet, then switch to the real header.
Why is the Server header a problem?
It is not, unless it shows an exact version (for example Apache/2.4.41). Version numbers make it easy to look up known security holes. Most servers can be told to send only their name.
Which page do the headers come from?
From the final page after any redirects, as a browser would see it. Headers can differ between pages, so check your main templates (home, an article, the login page).
Related tools
Browse all tools- SSL Certificate Checker Check a site's SSL/TLS certificate: expiry date, the names it covers, the issuer, the chain and the TLS version.
- Redirect Checker Follow every redirect from an address to its final page, with status codes, and check that http, https, www and non-www all end in one place.
- .htaccess Redirect Generator Write .htaccess rules to force HTTPS, choose www or non-www, redirect old pages and set security headers, with the same rules for Nginx.
- Website Status Checker Is a website down for everyone or just you? Check whether it answers, how fast, and what error it gives.