GUIDE 9 OF 11 · WEBSITE HEALTH CHECK
HTTPS, the HTTP redirect, HSTS, mixed content and post-quantum key exchange
Five checks look at whether the connection to your site is safe. The page must be served over HTTPS (worth 10 points, the most of any check), http:// should redirect to it, the Strict-Transport-Security header should tell browsers to stay on HTTPS for at least 180 days, an HTTPS page must not load scripts, styles or frames over plain HTTP, and the server should pick the post-quantum key exchange that current browsers offer.
AT A GLANCE
- HTTPS: served over plain HTTP fails.
- HTTP redirect:
http://must answer with a redirect (3xx) to anhttps://address. A page served as-is on HTTP fails. No answer, or a redirect that is not to HTTPS, is a warning. - HSTS: no header fails. A
max-ageunder 15,552,000 seconds (180 days) is a warning. - Mixed content: a script, stylesheet, frame or form on plain HTTP fails. An image, audio or video on plain HTTP is a warning.
- Post-quantum key exchange: the server picking X25519MLKEM768 passes. TLS 1.3 with a classic key exchange, no TLS 1.3, or no answer to a browser-sized hello is a warning. It never fails.
| Check | Group | Points |
|---|---|---|
Served over HTTPS sec-https | Security | 10 |
HTTP redirects to HTTPS sec-http-redirect | Security | 5 |
Strict-Transport-Security (HSTS) sec-hsts | Security | 6 |
No mixed content sec-mixed-content | Security | 4 |
Post-quantum key exchange sec-pq-kex | Security | 2 |
What each check looks at
| Check | Pass | Warning | Fail |
|---|---|---|---|
Served over HTTPS (sec-https) | The page address is https | Never a warning | The page is served over plain HTTP |
HTTP redirects to HTTPS (sec-http-redirect) | http:// answers with a redirect to https | No answer on port 80, or an answer that is not a redirect to https | http:// serves the page without redirecting |
Strict-Transport-Security (sec-hsts) | max-age of 15,552,000 seconds or more | A max-age below that, or none | No header at all |
No mixed content (sec-mixed-content) | Nothing loads over http | An image, audio or video over http | A script, stylesheet, iframe or form over http |
Post-quantum key exchange (sec-pq-kex) | The server picks X25519MLKEM768 in TLS 1.3 | TLS 1.3 with a classic key exchange, no TLS 1.3, or no usable answer to a browser-sized hello | Never a failure: when the server cannot be asked, the check is skipped |
If the site is not on HTTPS, the redirect, HSTS, mixed-content and post-quantum checks are skipped, because there is nothing for them to compare with. The HTTPS check fails and the others do not count.
HTTPS and the redirect from HTTP
Without HTTPS, anyone on the same network can read or change what a visitor sees. Most hosts, including Vercel, Netlify and Cloudflare, give you a certificate for free and renew it for you. If you run your own server, Let's Encrypt does the same.
Visitors and old links still use http://, so the plain address must send people to the secure one. Use a permanent redirect (301 or 308) from every http:// address to the same page on https://. The checker asks http:// on port 80 and passes any redirect (3xx) that leads to an https address.
This site is hosted on Vercel, which handles both: HTTPS is on, and http://zakaullahwaheed.com answers with a 308 redirect to the secure address.
HSTS
HSTS is a header that tells a browser: for the next so many seconds, never use plain HTTP for this site, even if someone types it. After a visitor has loaded your site once, their browser upgrades any later http:// request to https:// by itself, so someone on the network cannot strip the secure connection away.
Strict-Transport-Security: max-age=31536000; includeSubDomainsThe checker passes any max-age of 15,552,000 (180 days) or more, and reports whether includeSubDomains is there. One year (31,536,000) is the usual value. This site's header, set by Vercel, is max-age=63072000, which is two years.
Be careful with HSTS
A browser remembers the rule for the whole max-age. If you turn it on and then break HTTPS on a subdomain, visitors cannot get around the error. Start with a short max-age while you test, and only add includeSubDomains when every subdomain is on HTTPS.
Mixed content
Mixed content is an HTTPS page that loads something over plain HTTP. Browsers block the risky kinds (scripts, stylesheets, frames) so the page breaks, and the checker fails it. Images and media are only warnings, because they are less dangerous, but browsers may upgrade, block or flag them too, so change them as well.
<script src="http://cdn.example.com/lib.js"></script> <!-- fail: change to https:// -->
<img src="http://example.com/photo.jpg" alt="Team"> <!-- warning: change to https:// -->
<script src="//cdn.example.com/lib.js"></script> <!-- fine: takes the page's own scheme -->What the checks cannot see
Only the HTML the server sends is read. Something a script adds later, a stylesheet that pulls an image over http with url(...), and an image set with srcset are not seen. A plain link to an http address is not mixed content and is not flagged. Run the browser's console on the page too: it lists everything it blocked.
Post-quantum key exchange
When a browser opens a secure connection, it and the server first agree on a secret key. That agreement is most often done with an elliptic-curve method called X25519, and a large enough quantum computer could break it. Such a computer is not here yet, but someone can record encrypted traffic today and keep it until one exists, a "harvest now, decrypt later" attack. So the key agreement is the part that is being replaced first.
The replacement browsers use is a hybrid called X25519MLKEM768. It runs X25519 and ML-KEM-768 together, which keeps the protection X25519 gives today and adds ML-KEM on top, a safer path if a weakness is ever found in ML-KEM. ML-KEM is the key-exchange method NIST published as the standard FIPS 203 in August 2024, and the hybrid is defined in RFC 10024. Chrome and Edge have offered it by default since version 131, Firefox since 132 on desktop, and Safari since 26.
The check opens one TLS 1.3 connection to the server and sends the first message a browser sends, with X25519MLKEM768 listed first. It reads which key exchange the server picks in its first reply and then closes the connection. No handshake is completed, no page is requested, and nothing is stored. The check is worth 2 points, so a warning costs under one point of the 0 to 100 score.
A server that picks X25519MLKEM768 passes. Three answers are a warning: TLS 1.3 with a classic key exchange, no TLS 1.3 at all (the hybrid needs it), and a server that answers a small hello but not a browser-sized one of about 2 KB, because the post-quantum key share makes the hello too big for one packet on an ordinary connection. The Go 1.24 release notes mention servers of that kind: ones that do not handle large records correctly. When the server cannot be asked at all (it does not answer, it is not a TLS server, the address is an IP number, or the port is not 443), the check is skipped and says why.
How to fix a warning
- A host or CDN handles the secure connection for you: the fix is on their side, so look in their documentation or ask them. Cloudflare, for example, lists X25519MLKEM768 among the key agreements it has deployed. This site is on Vercel, and Chrome 158 negotiated X25519MLKEM768 with it when we measured on 4 December 2026.
- You run the server: the TLS library decides. OpenSSL 3.5 and newer prefer the hybrid groups in their default settings, and Go 1.24 and newer turn X25519MLKEM768 on by default (unless the program sets its own list of curves). A web server built on an older library needs updating first.
- No TLS 1.3: on nginx,
ssl_protocols TLSv1.2 TLSv1.3;turns it on. It needs OpenSSL 1.1.1 or newer and is the default since nginx 1.23.4. - Answers a small hello but not a browser-sized one: update the TLS software or the load balancer in front of the site, and ask whoever runs the network whether a firewall or traffic-inspection device cuts off large handshake packets.
What a pass does not mean
A pass says this server, answering this kind of hello, picked the hybrid key exchange. It does not say the site is quantum safe. The check looks at the key exchange only, not at the signature in the certificate that proves who the server is: Cloudflare's list of browser support shows no browser verifying post-quantum signatures yet, and Chrome plans a different design for them, Merkle Tree Certificates. It also sees one server (a CDN has many), TLS over TCP and not HTTP/3, and the answer of the moment it was run: a host can change what it offers.
Questions people ask
Is HTTPS a ranking factor?
Google announced in 2014 that it uses HTTPS as a lightweight ranking signal. That is not why it is worth 10 points here. The weight is about safety: without it, anyone on the network can read or change the page.
Do I need to redirect http to https if my host already does HTTPS?
Yes, check it. A site can have a certificate and still answer on http:// without redirecting. The check fails only when http:// serves the page itself. No answer on port 80 at all is a warning.
What max-age should I use for HSTS?
The check passes 15,552,000 seconds (180 days) or more, and one year, 31,536,000, is the usual choice. Start lower while you are still testing, because browsers remember the rule for as long as the max-age says.
What is X25519MLKEM768?
It is a hybrid key exchange for TLS 1.3. It combines X25519, the elliptic-curve method used today, with ML-KEM-768, a method built to resist quantum computers and standardised by NIST as FIPS 203. The browser and the server both run the two and mix the results, so a recording of the traffic cannot be read later unless both are broken. The check reports whether the server picks it when a browser offers it.
Does a pass mean my site is quantum safe?
No. It means this server, answering this kind of hello, chose the hybrid key exchange, so a recording of a connection made this way should not be readable later by a quantum computer that breaks X25519. The certificate's signature is not covered, the check sees one server and TLS over TCP only, and a host can change what it offers. Treat it as one good sign, not a certificate of safety.
Is post-quantum the same as quantum encryption?
No. Post-quantum cryptography is ordinary software: new mathematics, such as ML-KEM, that quantum computers are not known to break, running on the hardware you already have. Quantum key distribution is a different thing that uses the properties of quantum physics. The US National Security Agency lists as a limit that it needs special purpose equipment, so it cannot be implemented in software or as a service on a network, and it prefers quantum-resistant cryptography. A website check therefore looks at ML-KEM, not at anything quantum.
Where the facts come from
- MDN: the Strict-Transport-Security header (opens in a new tab)
- MDN: mixed content (opens in a new tab)
- Let's Encrypt: getting started (opens in a new tab)
- NIST: FIPS 203, the ML-KEM standard (opens in a new tab)
- IETF: RFC 10024, hybrid key agreement for TLS 1.3 (X25519MLKEM768) (opens in a new tab)
- Cloudflare: post-quantum cryptography (opens in a new tab)
- Cloudflare: which browsers and libraries support it (opens in a new tab)
- OpenSSL 3.5 release notes (opens in a new tab)
- Go 1.24 release notes (opens in a new tab)
- nginx: the ssl_protocols directive (opens in a new tab)
- NSA: quantum key distribution and quantum cryptography (opens in a new tab)
See also on this site
FREE · ABOUT TEN SECONDS · NOTHING STORED
Check your own site
Paste a web address into the free website health check. It runs the 36 checks these guides explain, gives a score out of 100, and says what to fix first.
Open the free website health check