Why does my website say 'Not secure'? How to fix it

Last updated

The short answer

A browser says Not secure when it can't confirm that the connection to your site is private. Most of the time the page was opened over plain http://: the site has no certificate, or has one but doesn't send visitors to the https:// address. The fix is to install a certificate (free on almost every host), redirect every http address to https, renew the certificate automatically, and load every picture, script and form on the page over https too.

What the warning means

Browsers show three different things, and each points to a different problem (Chrome Help):

SSL and TLS are the names of the technology behind https; "SSL certificate" is the common name for the file that proves your site is who it says it is.

Why it matters

The four usual causes, and the fix for each

CauseWhat visitors seeThe fix
No certificate, or no redirect to https"Not secure" beside the addressTurn on the free certificate your host or builder offers, then make every http:// address redirect permanently (301) to its https:// twin.
The certificate expired, or doesn't cover the addressA full-page warningRenew it and switch on automatic renewal. Make sure it covers both example.com and www.example.com, and any other address you use.
Mixed content: parts of the page load over httpA missing picture or a broken widget; a warning when a form sends to an http addressChange those links to https://. Browsers now upgrade or block http pictures and scripts on an https page (MDN), so the usual symptom is something quietly missing.
An old TLS version or weak cipherAn error page instead of your site, in up-to-date browsersAsk your host to switch off TLS 1.0 and 1.1, which are formally retired (RFC 8996), and keep only TLS 1.2 and 1.3 with modern ciphers.

Mixed content usually comes from addresses typed into the page years ago: a logo, a slider image, an embedded map or an old form. After moving to https, search the site's content and theme settings for http:// and update what you find.

Turning on https on your platform

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

For Windows (IIS) hosting, and for sites reachable at several addresses, see one address for each page.

Stopping it coming back

Strict-Transport-Security: max-age=31536000; includeSubDomains

How the scan checks it

Checklist

Questions people ask

Why does my website say 'Not secure'?
Usually because the page was opened over plain http, not https: the site has no certificate, or it has one but doesn't send visitors to the https address. A certificate that has expired or doesn't cover the address shows a full-page warning instead.
Does 'Not secure' mean my website has been hacked?
No. It is about the connection, not about what is on the site: the browser can't confirm that what it sends and receives is private. A site Google has found to be harmful gets a different, red full-page warning.
Do I have to pay for an SSL certificate?
No. Let's Encrypt issues certificates free, and most hosts and site builders install and renew one for you at no charge. A free certificate encrypts the connection just as well as a paid one.
I have an SSL certificate, so why does it still say 'Not secure'?
The usual reasons: the http address doesn't redirect to https, so visitors still land on the insecure copy; the certificate has expired; it covers example.com but not www.example.com; or the page loads pictures, scripts or a form over http.
How do I check when my certificate expires?
In Chrome or Edge, click the icon to the left of your address, open the connection details and then the certificate: it shows the dates it is valid between. The free scan also reports how long yours has left.

What the free scan checks for this

These are the FocalScore checks that cover this guide's subject. Each one in your report says what it found, shows the evidence and gives the fix.

Sources

Last checked . Documentation, settings and rules change; if one of these pages now says something different, it is right and this guide is out of date. Tell us at info@focalscore.com.

  1. Google Chrome Help: Check if a site's connection is secure
  2. Google: HTTPS by default (Chrome's warning before sites without https)
  3. web.dev: Why HTTPS matters
  4. MDN: Mixed content
  5. RFC 8996: Deprecating TLS 1.0 and TLS 1.1
  6. CA/Browser Forum: Ballot SC-081v3, reducing certificate validity periods
  7. Let's Encrypt: Getting started
  8. OWASP Cheat Sheet: HTTP Strict Transport Security
  9. Cloudflare: Full (strict) SSL mode