Fixing the browser Not Secure warning, cause by cause

To fix the Not Secure website warning, work through the three usual causes in order: install a valid HTTPS certificate, make sure that certificate is trusted and in date, then clear any mixed content (http resources loading on an https page). One of these three is almost always behind the label.

How to fix6 min read

The browser shows Not Secure when the page either is not served over HTTPS at all, or is served over HTTPS but something about it is broken. The fix depends on which of those it is, so the first job is to tell them apart.

A free external scan reads what your site already serves and tells you in about ten seconds which cause you are dealing with, so you are diagnosing rather than guessing. This page walks through each cause and what to do about it.

First, work out which of the three causes you have

The Not Secure label has three common roots, and the fix is different for each. Before changing anything, find out which one applies so you do not waste time on the wrong repair.

An external check reads what your site already serves publicly and reports back on encryption: whether HTTPS is present, whether the certificate matches the domain and is trusted and in date, whether http:// redirects to https://, and whether the page pulls in any insecure content. That gives you the diagnosis in plain English.

  • No HTTPS: the site answers on http:// only, with no certificate at all.
  • Invalid or expired certificate: HTTPS exists but the certificate is self-signed, from an untrusted authority, expired, not yet valid, or issued for a different domain name.
  • Mixed content: the page itself loads over https:// but pulls in some images, scripts or styles over http://, so the browser flags the whole page.

Cause 1: the site has no HTTPS certificate

If there is no certificate at all, every page is Not Secure and there is nothing to redirect to yet. This is the most common cause on older or never-migrated sites.

Most UK hosts (including SiteGround, where many small-business sites live) offer a free Let's Encrypt certificate you can switch on from the hosting control panel. Once it is issued, your site will answer on https:// as well as http://.

  • Install a certificate: turn on the free SSL/TLS option in your hosting panel, or ask your host to enable it.
  • Force the redirect: set http:// to redirect to https:// so visitors and search engines always land on the secure version. The scan flags when that redirect is missing.
  • Update your site address: for WordPress, set both the WordPress Address and Site Address to the https:// version, and update any hard-coded internal links.

Cause 2: the certificate is invalid, untrusted or expired

Here HTTPS is present but the browser refuses to trust it. The usual reasons are a certificate that has expired, one that is not yet valid, a self-signed certificate, one from an authority browsers do not trust, or one issued for the wrong domain name (for example covering example.com but not www.example.com).

An external scan checks the certificate against the domain, confirms it comes from a trusted authority rather than being self-signed, and reads its validity dates, including how many days remain before expiry. That tells you exactly which of these you are hitting.

  • Expired or expiring: renew the certificate, and switch on auto-renewal so it does not lapse again.
  • Self-signed or untrusted: replace it with one from a recognised authority such as Let's Encrypt or your host's provider.
  • Wrong domain: reissue a certificate that covers every hostname you use, including the www and non-www versions.

Free, instant, no account

See your site's security grade in seconds.

Free, instant, and no account needed to see your grade.

Scan my site free

Plain-English A to E grade in about 10 seconds. No account needed to see it.

Cause 3: mixed content on an otherwise secure page

This one catches people out: the certificate is fine and the page loads over https://, but it still shows Not Secure (or a broken padlock) because it pulls in some resources over http://. The browser treats any insecure resource as a weak link and flags the page.

The culprits are usually hard-coded http:// links to images, fonts, scripts or stylesheets, often left over from an older version of the site or pasted in from elsewhere.

  • Find the offending resources: an external scan reports mixed (insecure http) content found on a secure page, and your browser's developer console lists each insecure item.
  • Switch them to https:// (or to protocol-relative or relative paths) wherever the secure version exists.
  • On WordPress, a search-and-replace of http:// to https:// across the database content usually clears the bulk of it, then recheck for stragglers in themes and plugins.

Confirm the fix, and what an external scan cannot tell you

After any change, reload in a private browser window or clear the cache, since browsers hold on to the old state. Then run the scan again: you want HTTPS present, a trusted in-date certificate, http redirecting to https, and no mixed content.

Be clear about the limits of an external check. It reads what your site serves publicly and reports on encryption, certificates, headers and a few well-known paths. It does not log in, and it does not scan your server's files for malware. So a clean encryption result confirms the padlock is fixed, but it is not proof that the underlying files are clean. If you suspect a hack rather than a certificate issue, ask your host to run a server-side scan or bring in a specialist. The free EB check is a fast first signal, not a full audit.

The Not Secure warning has three usual causes: no HTTPS, a broken or expired certificate, or mixed content. Diagnose which one you have, fix that, then recheck.

Common questions

How do I fix the Not Secure website warning if I already have an SSL certificate?
Usually it is mixed content: the page loads over https:// but pulls in some images, scripts or styles over http://, so the browser flags the whole page. It can also mean the certificate has expired, is self-signed, or was issued for a different domain. A free external scan checks the certificate and looks for mixed content, so it tells you which one applies.
Does the Not Secure warning mean my site has been hacked?
Not on its own. It is a browser warning about encryption, not a hack alert, and it most often points to a missing, expired or misconfigured certificate, or to mixed content. If you suspect a compromise rather than a certificate problem, ask your host to run a server-side malware scan, since an external check reads only what the site serves publicly and cannot see your server's files.
How long does the Not Secure warning take to disappear after I fix it?
The certificate or content change takes effect as soon as it is live, but your browser may still show the old state from its cache. Reload in a private window or clear the cache, then recheck. A fresh external scan confirms whether HTTPS, the certificate and mixed content are all now clean.
Is fixing the Not Secure warning the same as making my site fully secure?
No. Clearing the warning sorts out HTTPS, the certificate and mixed content, which matters but is only part of the picture. Things like security headers, cookie flags and out-of-date software also count. A free external scan covers those too and gives you a 0 to 100 score and a grade, so you can see what is left to do.
Can I get a free certificate to fix this?
Yes. Most UK hosts offer a free Let's Encrypt certificate you can switch on from the hosting control panel, with auto-renewal so it does not lapse. Once it is issued and http:// redirects to https://, the no-HTTPS cause is resolved.

How safe is your website?

A free A to E grade in about 10 seconds. No account needed.

Check my site