Is your website secure and trusted? Browsers, visitors and search engines trust sites with a valid SSL certificate and modern security headers. We check the certificate (issuer, expiry, name), the http to https redirect, and the security headers your server sends, with a simple grade.
The Security Headers & SSL Checker tests whether a website uses https correctly and sends the HTTP headers that tell browsers how to protect visitors. Enter a domain and you get a grade from A to F, a short list of what to fix and a table with every check: the http to https redirect, the SSL certificate, the TLS version, HSTS, Content-Security-Policy, clickjacking protection, cookies and more.
Security headers are short lines your server adds to every response. Visitors never see them, but browsers read them and change how they treat your pages: always use https, run scripts only from sources you trust, never show the page inside someone else's frame. They cost nothing, most of them take one line of server configuration, and they close whole classes of attacks. This guide explains what the checker tests, how to read the grade and how to add the missing headers without breaking your site.
example.com. You can paste a full address too; the checker uses only the host name and tests the home page of that host over https.http:// to see whether it redirects, and loads the https home page to read the headers. This takes a few seconds.?url= and the domain to the tool's address; the check starts by itself when the link is opened.
The grade counts problems by how serious they are. It is a quick summary, not a security audit:
Notes marked "Info" never change the grade. They cover things that are good practice but optional, or that browsers already handle with a safe default. The cross-origin headers (COOP, CORP and COEP) are shown for reference only, because adding them without testing can break embedded videos, maps or payment widgets.
The checks follow the current recommendations of the OWASP Secure Headers Project, the MDN Web Docs header reference and the rules of the HSTS preload list. Only the home page of the domain is tested, and headers are read from the final response after redirects, so wikipedia.org is judged by what www.wikipedia.org sends.
The tool requests http:// without following redirects. A 301 or 308 to an https:// address is good. If the http version answers with a normal page, visitors who type the address or follow an old link use an unencrypted connection, and that is marked "Fix". A redirect to another http address is shown as a note, because the chain may still end on https.
The checker opens a TLS connection itself, the same way a browser does, and reads the certificate. It checks that the certificate is trusted (issued by a known authority with a complete chain), that it covers the host name you entered, including wildcard names such as *.example.com, and how many days are left. An expired, untrusted or mismatched certificate makes browsers show a full-page warning, so these are always marked "Fix". A certificate with 14 days or less left is a warning. Below the table you see the names the certificate covers, with the ones that match your host listed first.
Certificates are getting shorter. Under the CA/Browser Forum rules, public certificates issued since 15 March 2026 can be valid for at most 200 days; the limit drops to 100 days on 15 March 2027 and to 47 days on 15 March 2029. Automatic renewal is no longer optional, so a short "days left" value is a good reason to check that it works.
The table shows the TLS version that was agreed during the connection. TLS 1.2 and 1.3 are fine. If the server only offers TLS 1.0 or 1.1, current browsers refuse to connect, and the check is marked "Fix".
HSTS tells the browser to use only https for your domain for a set time (max-age, in seconds). Without it, the first request after a visitor types your domain can still go over http, where it can be intercepted. The checker wants a max-age of at least six months (15552000) and recommends one year (31536000). max-age=0 switches HSTS off and is reported as such. If the header contains preload, the tool also checks the rules of the preload list at hstspreload.org: a max-age of at least one year and includeSubDomains.
A CSP lists where scripts, styles, images and other resources may come from. It is the strongest protection against cross-site scripting (XSS), because injected code from an unknown source simply does not run. The checker reads the enforced header first. It looks at script-src, or default-src if there is no script-src, and warns when the policy:
'unsafe-inline' without a nonce or hash (with a nonce or hash, browsers ignore 'unsafe-inline'),*, https:, http: or data:.'unsafe-eval' gets a note. A policy sent only as Content-Security-Policy-Report-Only is reported as blocking nothing. A policy in a <meta http-equiv> tag counts, with a note that frame-ancestors and reporting do not work there.
The only valid value is nosniff. It stops browsers from guessing a file's type from its content, so an uploaded text file cannot suddenly run as a script.
Clickjacking means loading your page invisibly inside a frame on another site and tricking visitors into clicking buttons on it. The modern protection is the CSP directive frame-ancestors; when it is present, browsers ignore X-Frame-Options. The older X-Frame-Options header still works with the values DENY and SAMEORIGIN. The checker flags ALLOW-FROM and other values, because current browsers ignore them and the page is left unprotected.
Referrer-Policy controls how much of your page address is sent to other sites when a visitor clicks a link. If it is missing, browsers use strict-origin-when-cross-origin, which is a sensible default, so a missing header is only a note. The checker reads the value browsers actually use (the last one they recognise in a list) and warns about unsafe-url, which sends full addresses with query strings to every site. Permissions-Policy switches off browser features your site does not use, such as the camera, microphone or location. It is shown in the table and is optional.
Cookies set on the home page are checked for three attributes: Secure (sent only over https), HttpOnly (not readable by scripts) and SameSite (limits cross-site requests). The tool reads the attributes themselves, so a cookie named secure_id does not fool it. It also notes when Server, X-Powered-By or similar headers reveal a software version such as PHP/8.3.1, which helps attackers look up known weaknesses. Finally, it points out outdated headers: X-XSS-Protection turned on (current browsers removed this filter, and MDN warns that it can create problems in old browsers), Expect-CT and Feature-Policy, the old name of Permissions-Policy.

Where you add headers depends on your setup. On shared hosting with Apache, the .htaccess file in the site root usually works (the mod_headers module must be enabled). On Nginx, add them to the server block. Many CDNs, including Cloudflare, can add response headers in their dashboard, and WordPress security plugins often have a headers section. A safe starting set for Apache looks like this:
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains" Header always set X-Content-Type-Options "nosniff" Header always set Content-Security-Policy "frame-ancestors 'self'" Header always set Referrer-Policy "strict-origin-when-cross-origin" Header always set Permissions-Policy "camera=(), microphone=(), geolocation=()"
On Nginx the same lines are written as add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; and so on. The word always makes sure the header is also sent on error pages and redirects.
The frame-ancestors line above is a CSP that only controls framing and does not limit scripts yet. A full CSP needs a list of every source your site loads scripts, styles, fonts and images from. Build it step by step: send it as Content-Security-Policy-Report-Only first, watch the browser console or your report endpoint for a week, adjust, and only then switch to the enforcing header. Add HSTS only when every page and subdomain works over https, and use includeSubDomains only if that is true for all subdomains.
Partly, and indirectly. Google uses HTTPS as a ranking signal and lists secure serving in its page experience documentation, and Chrome marks http pages as "Not secure". A broken certificate stops visitors before they reach your content. Google has not said that headers such as CSP or X-Content-Type-Options are ranking signals. Their value for SEO is protection: a hacked site that serves spam or malware can be flagged in search results and lose traffic for weeks, and headers make the most common attacks much harder.
X-XSS-Protection: 1; mode=block. It does nothing in current browsers. Remove it or set it to 0 and invest in a CSP instead.X-Frame-Options: ALLOW-FROM. Browsers ignore it. Use frame-ancestors with the sites you want to allow.Run it after moving a site to a new host or CDN, after installing a certificate, after changing server configuration and before a launch. It is also a quick way to check a supplier's or client's site before you integrate with it. For a full list of every response header, use the HTTP Header Checker; to see whether a domain is on a malware or phishing blocklist, use the Website Safety Checker.
They are response headers that tell the browser how to handle your pages more safely, for example to use only https (HSTS), to run only trusted scripts (Content-Security-Policy) or to refuse to show the page in a frame on another site.
Every https site should have a redirect from http, Strict-Transport-Security, X-Content-Type-Options: nosniff and clickjacking protection. A Content-Security-Policy is strongly recommended. Referrer-Policy and Permissions-Policy are useful extras.
No. Current browsers removed the filter it controlled, and MDN notes that it can create problems in old browsers. Remove it or set it to 0, and use a Content-Security-Policy.
Usually the server does not send the intermediate certificate. Your browser may have it cached from another site, but a fresh client cannot complete the chain. Install the full chain file from your certificate provider.
No. It tests the home page of the host you enter. Headers set by the server or CDN usually apply to all pages, but headers added by an application can differ, so test important subdomains separately.
Yes. It is free, needs no sign-up and only reads public information that any browser receives.