Has your browser ever said "Not secure" in the address bar? If it says that when you open the site you published, the front door has no lock on it.
The short version: there are three things to do. Serve the site over HTTPS. Send anyone who arrives on http:// to https://. Send HSTS. Only when all three are in place do you have always-on HTTPS.
The difference between http and https
Think of a postcard versus an envelope. With http, both the address and the contents are on an open postcard, and anyone at any post office along the way can read it.
https is the version that travels in an envelope. The contents are wrapped in TLS (the way the connection is encrypted), so they cannot be read or changed in transit. The padlock in the address bar is the sign that the envelope is in use.
You may think this has nothing to do with you. It matters if your site has a form, a login, or a payment. It is the difference between the words people type there being readable on the way or not.
When the padlock disappears
When an https page loads an http image or script, the browser treats it as mixed content. It shows a warning, or blocks the load outright.
The result can be that the padlock disappears even though the page itself is served over https. One http image is often all it takes.
The fixes are collected in Mixed content. The place to start is swapping each http part for the same part over https.
What HSTS is
HSTS is a notice taped to a shop door that says "from now on, please always use this door". Once a visitor has come in, they remember the notice.
HSTS (Strict-Transport-Security) is one of the headers a server sends with its response. It tells the browser to use HTTPS only from the next visit on.
Once a browser has opened the site over HTTPS, it remembers that instruction for the max-age period. During that time, even if someone follows an http:// link, the browser switches to https:// by itself.
A common target is max-age=31536000; includeSubDomains. 31536000 seconds is one year. includeSubDomains extends the same instruction to your subdomains.
Two cautions. HSTS is only accepted over an HTTPS response, so it cannot protect the very first request over http. That is why it goes together with a redirect. And add includeSubDomains only after you have confirmed that every subdomain works over HTTPS.
preload teaches browsers from the start that a domain is HTTPS only. It is powerful, but removing a domain from the list takes time, so treat it as the final step.
Always-on HTTPS has two parts
The first part is the redirect. A request that arrives on http:// is sent back to the same path on https:// with a 301 or 308. Keep the path and the query string (everything after the ?) so that old links still land in the right place.
The second part is HSTS. With a redirect alone, following an http:// link still goes through the entrance once. With HSTS, the browser picks https:// from the start on later visits.
The order matters. Fix the redirect first, confirm it works, and then add HSTS.
The two items vuln checks
vuln (a free check that runs on a public URL) shows this in its result table as two rows.
- V01 HTTPS / HSTS (area: Headers, priority 3)
- V13 HTTP to HTTPS (area: Transport, priority 3)
V01 looks at whether the top page's response carries HSTS. If it is missing, or if max-age is below 180 days (15552000 seconds), the result is "Check". A missing includeSubDomains also shows as "Check".
V13 sends a HEAD request to the http:// version and looks at how it answers. A 200 with content means "Needs work"; a redirect to https means "Pass"; a redirect somewhere other than https means "Needs work".
The vuln input accepts https URLs only, but vuln makes the http:// request itself. You do not need to change the URL you enter.
How to fix it
The order is: redirect, then HSTS, then includeSubDomains, then preload.
Start by finding the redirect setting in your hosting. Cloudflare, Netlify, and Vercel all have one. The official steps are here.
- Cloudflare's official Always Use HTTPS documentation (English)
- Netlify's official HTTPS (SSL) documentation (English)
- Vercel's official Encryption (TLS) documentation (English)
- MDN's official Strict-Transport-Security documentation (English)
On Cloudflare, turning on "Always Use HTTPS" sends http requests to https. Netlify has an HTTPS setting per domain, and Vercel sends HSTS even on custom domains. Check what your own service currently has set.
You can also write the redirect in your framework. But stacking it on top of the hosting setting can double the redirect or send people to a URL you did not intend. Look at the hosting first, and add the app-side rule only when something is missing.
Once the redirect works, add HSTS. In your hosting or framework settings, add Strict-Transport-Security: max-age=31536000; includeSubDomains to the response headers. The general routine for headers is also covered in Security headers, explained.
You can also raise the HSTS period in steps. Start with a short max-age, confirm nothing breaks, and then move to one year. Setting a long period straight away makes it harder to roll back a mistake.
A measurement from our own site
On 21 November 2026 we checked this site's response headers with curl -sSI.
- https://ismyappok.com returns
strict-transport-security: max-age=31536000; includeSubDomains - http://ismyappok.com/ja/articles returns 308 with
location: https://ismyappok.com/ja/articles, so it redirects to https - http://ismyappok.com/ja/articles?x=1 returns 308 with
location: https://ismyappok.com/ja/articles?x=1, keeping the query
So HSTS is in place and the http entrance now closes by redirecting to https. In vuln terms, both V01 and V13 are a pass.
Update (21 November 2026): when this article was published, http returned 200 and V13 was "Needs work". We then added a permanent redirect (308) in the app for requests that arrive over http, keeping the same path and query, and shipped it. The measurement above is from the same day, after that change.
Writing this made me realise that checking your own site is part of the job. Open both https and http and see whether the same page comes back. If it does, the redirect is still missing.
This check reads the response from the CDN (the network that serves the site from many locations). It may differ from the origin server's settings, so treat the result as a snapshot of that moment.
How it looks in the result screen
"3. Result" in vuln shows a pass-rate summary and the checklist. The table has six columns: ID, Item, Priority, Result, Area, and Evidence and fix.
V01 appears in the Headers area and V13 in the Transport area. Results are one of "Pass", "Check", "Needs work", or "Not checked".
The Evidence and fix column keeps what the check observed as key=value lines. For V01 that is header=strict-transport-security and excerpt=max-age=…; for V13 it is request=HEAD http://… and status=200. A status=200 means "http returned content", which is your cue to look at the redirect.
The Priority column and the "Needs work only" filter help you decide what to fix first. The filter includes "Check" as well as "Needs work", because both are candidates.
HTTPS alone does not make a site safe
vuln is not a penetration test. It checks the public face of a site from the outside.
It does not look inside the certificate, behind a login, at APIs, or at business logic. HSTS does not close the hole that lets a script into the page, either.
It can also be wrong in the other direction. The check observes from the edge, so what it sees may differ from the origin server. Run the check again after you make changes.
Finding nothing does not mean the site is safe. That holds for every check.
Wrapping up
Publishing over http:// leaves the first visit exposed. The fix is two parts: the redirect and HSTS. Both often take a few lines in a config file, which is a decent return for the effort.
Start with V13 and V01 in vuln. If V13 says "Needs work", it is the redirect; if V01 says "Check", it is HSTS.
The fixes are collected on these pages.
When you have changed the settings, run vuln again. You can check display and links before launch with audit (no login) as well.
This article is based on checking our own site's settings. We did not scan anyone else's site for it. The numbers are recommended values and implementation thresholds; the only measurements are the ones with the date and method given in the text.