HTTPS connection check: does every page load over HTTPS?
Every page of your site should load over HTTPS, and so should every script, stylesheet, image and font it pulls in. If someone types your plain http:// address, answer with a 301 Moved Permanently redirect to the HTTPS version. Once that works, add the Strict-Transport-Security header.
What is HTTPS and why does it matter?
Transport Layer Security (TLS) is a protocol that lets a browser talk securely with a server across an untrusted network, and HTTPS is HTTP secured by TLS. HTTPS is the defense against a manipulator in the middle attack, where someone gets between a visitor's browser and your server and can read and change the traffic. Browsers treat pages delivered over HTTPS as a secure context, and many powerful web APIs only run in a secure context.
MDN puts it plainly, all websites should serve all their pages and subresources over HTTPS.
If the main page loads over HTTPS but any of its subresources load over HTTP, that is called mixed content. An attacker can read those files and potentially modify them, for example changing a script to behave harmfully. Browsers don't let secure pages load insecure subresources, so depending on the type they either upgrade the request to HTTPS or block it.
Even with a redirect, an attacker can intercept the first plain HTTP request and prevent the upgrade to HTTPS, which is sometimes called an SSL stripping attack. The Strict-Transport-Security response header (HSTS) tells browsers your site wants HTTPS, so later visits connect over HTTPS directly, even from http:// links. Chrome keeps an HSTS preload list, and for a domain on it Chrome always upgrades HTTP requests to HTTPS, even on the first connection.
To prove it is really your server, your site needs a digital certificate, which binds your site's keys to its domain name.
How do I check?
Run these two commands against your own domain. Here they ask Atlas, our example app at atlas.example, for its response headers.
curl -sI http://atlas.example/
curl -sI https://atlas.example/On the first one, look for a redirect with a Location header pointing at the https:// address. On the second, look for headers with no certificate error, and see whether Strict-Transport-Security is among them.
Then open a few pages that carry images and embedded scripts, and search your code for asset addresses that start with http://.
Lockpick checks your site from the outside, reading only what your site already shows the public plus public records about your domain. A Pulse sends at most 12 requests to your site and a Deep scan at most 200. Anything a scan couldn't check is marked as not checked, never as passed.
Which fix do I need?
| If your site does this | Do this |
|---|---|
The http:// address shows the page instead of redirecting | Turn on your host's "force HTTPS" or "redirect HTTP to HTTPS" setting for every domain you attached. |
An HTTPS page loads a script, image or font from an http:// address | Change that address to https://, or copy the file onto your own site and link to it there. |
Old pages you can't edit still request http:// files | Send a Content Security Policy with upgrade-insecure-requests from your server as a fallback. |
HTTP redirects to HTTPS but no Strict-Transport-Security header comes back | Add HSTS, and read the HSTS policy check before adding subdomains or preload. |
The browser shows a certificate warning on the bare domain or on www | Make sure the certificate covers both names, then read the certificate failures check. |
| Every page and file loads over HTTPS and HSTS is set | Keep certificate renewal automatic and use Check again after each big change to domains or hosting. |
How do I fix it?
- Turn HTTPS on at your host. Modern hosts support HTTPS by default or through a configuration setting, and are likely to manage your certificate for you. Find that setting and confirm it is on for both the bare domain and
www. - Redirect plain HTTP. Turn on the "force HTTPS" or "redirect HTTP to HTTPS" option so every
http://request lands on the same page athttps://. - Fix mixed content. Search your code and content for
http://in script, stylesheet, image and font addresses, and change each one tohttps://. Where a file has no HTTPS version, host it yourself. - Add HSTS. Send the
Strict-Transport-Securityheader once every page works over HTTPS. HSTS explained walks through choosing its values. - Check again. Check again compares a new scan with the earlier one. A finding is never marked fixed because a ticket was closed or a task was ticked.
If you can't update the code, for example because the HTML is archived, your server can send a Content Security Policy with the upgrade-insecure-requests directive, and the browser will upgrade those requests to HTTPS.
Treat it as a stopgap and fix the addresses at the source when you can. For more on this part, read the mixed content check.
Fix it with your AI
Paste the prompt for your builder. Fix security issues with your AI builder has more on working this way.
Make every page of my site load over HTTPS. Check the publish and custom domain settings so the bare domain and the www address both serve HTTPS, and plain http:// requests redirect to the https:// version. Then search the code for any script, stylesheet, image or font address that starts with http:// and change it to https://. If a file has no HTTPS version, tell me instead of guessing. Do not change anything else. List every file and setting you changed.Find every place in this repository where my site loads something over plain http://. Search components, HTML, CSS and config files for script, stylesheet, image, font and iframe addresses that start with http:// and change them to https://. If the host has a force HTTPS or redirect setting, tell me where it is rather than writing a redirect by hand. Do not touch unrelated code. Show me a list of every file you changed and any address that has no HTTPS version.Make sure every page of my site loads over HTTPS. Check the hosting and framework settings for any route, domain or redirect that still serves plain HTTP, turn on the host's "force HTTPS" or "redirect HTTP to HTTPS" option, and make sure the certificate covers both the bare domain and the www address. Do not change anything else. Tell me which settings you changed.A worked example on Atlas
Say Atlas loads its homepage at https://atlas.example/ with a valid certificate. Running the first curl command shows http://atlas.example/ answering with the page itself, with no redirect. The pricing page also loads its logo from an http:// address on an old image host, and no Strict-Transport-Security header comes back.
That matches three rows of the table above. The fix on Atlas, in order:
- Turn on the host's force HTTPS setting, so
http://atlas.example/now redirects tohttps://atlas.example/. - Copy the logo into Atlas's own files and change its address to
https://. - Add HSTS once every page on Atlas works over HTTPS.
- Run both
curlcommands again, then use Check again so the new scan is compared with the one before.
What a check cannot tell you
A Lockpick report is not a certificate and not a full penetration test. It covers what that scan could see on that day. Lockpick never signs in to your site and never looks at anything behind a login, so check pages behind sign-in yourself.
The TLS server configuration decides which TLS version and cryptographic algorithms a connection uses. For that part, read the negotiated TLS version check.
A finding is confirmed only when the scan observed every part, and when a part was inferred rather than seen, it is marked needs review. The report lists what to fix by how directly someone could use it, not by the severity label.
Questions people ask
My host says HTTPS is on. Is there anything left to do?
Modern hosts support HTTPS by default or through a configuration setting, and are likely to manage your certificate for you. Still check that plain http:// addresses redirect to https://, that every script and image loads over HTTPS, and that the Strict-Transport-Security header is set.
Why does an image or script stop working on my HTTPS page?
If the image address starts with http:// on an HTTPS page, that is mixed content. Browsers don't let secure pages load insecure subresources, so depending on the type they either upgrade the request to HTTPS or block it. Change the address to https:// or host the file yourself.
Isn't a redirect from HTTP to HTTPS enough?
Even with a redirect, an attacker can intercept the first plain HTTP request and prevent the upgrade to HTTPS, which is sometimes called an SSL stripping attack. The Strict-Transport-Security response header (HSTS) tells browsers your site wants HTTPS, so later visits connect over HTTPS directly, even from http:// links.
Does Lockpick try to intercept my traffic to test HTTPS?
No. Lockpick never sends attack payloads, fills in your forms or tries passwords. Lockpick checks your site from the outside, reading only what your site already shows the public plus public records about your domain.
See what your site shows from outside
A quick check reads your homepage the way a visitor would and gives you a score. No account needed.
Check your siteSources
- How we check · Docs · Lockpick Lockpick docs, read on November 4, 2026
- How we rate findings · Docs · Lockpick Lockpick docs, read on December 1, 2026
- Transport Layer Security (TLS) - Security | MDN MDN Web Docs, read on December 1, 2026
- What we never do · Docs · Lockpick Lockpick docs, read on October 29, 2026