Skip to content

Padlock Shown but the Browser Says Not Secure: Why?

A padlock only means the connection is encrypted, not that every part of the page is safe. Here are the real causes of mixed warnings and how to find and fix each one.

9 min readUpdated Nov 30, 2026By XPASS Editorial Team

Padlock Shown but the Browser Says Not Secure: Why?

You visit a website and see the little padlock beside the address, yet the browser still warns that the page is "not secure", or the padlock has a line through it, or a yellow triangle appears. If you are the site owner, this is worrying because customers may leave. If you are a visitor, it is confusing because the padlock is supposed to mean safety.

The confusion comes from what the padlock actually promises. It is not a general safety stamp. It describes one narrow thing: the connection between your browser and the server is encrypted, and the certificate presented by the server matches the domain name you typed. Anything that breaks that picture, even partly, can change the indicator. This article explains the most common reasons, shows how to find the exact cause on your own site, and lists what to fix first. If you have not yet got HTTPS working at all, read why a domain can be connected while HTTPS is still missing first.

What the padlock really means

When a site is loaded over HTTPS, the browser and the server agree on a secret key using TLS, the protocol described in the explainer on what HTTPS is. The server proves its identity with a certificate, a signed document whose structure is defined in RFC 5280. The browser checks several things:

  • The certificate was issued by an authority the browser trusts.
  • The certificate has not expired and is already valid on the current date.
  • The domain name in the address bar appears in the certificate.
  • The certificate has not been revoked, where the browser can check this.
  • The chain of certificates leads back to a trusted root.

If all of these hold, the browser shows its secure indicator. Note what is not on the list: whether every resource on the page is also secure, whether the site owner is honest, and whether the page contains nothing harmful. Those are separate questions, and each can trigger its own warning.

Browsers have also changed how they display this. Several now show a neutral icon instead of a classic padlock, and they reserve strong wording such as "Not secure" for pages without encryption or with serious problems. Wording and icons differ between browsers and versions, so treat the exact look as a hint rather than a fixed rule.

Cause 1: Mixed content

The most common reason for a padlock that comes with a warning is mixed content. The page itself arrived over HTTPS, but it asks for some files over plain HTTP.

There are two kinds:

  • Passive mixed content includes images, audio and video. Browsers often still load them, but they may lower the security indicator.
  • Active mixed content includes scripts, stylesheets and frames. These can change the page, so browsers usually block them. A blocked script can make parts of the page stop working, which owners often notice before they notice the warning.

How it happens: a website was built before HTTPS was added, and addresses such as http://example.com/logo.png were written into the pages, the theme or the database. After the certificate is installed, the main address works over HTTPS, but those hard-coded links still point to the insecure version.

How to find it

  1. Open the page, then open developer tools. In most browsers press F12 or use the menu.
  2. Look at the Console. Mixed content messages name the exact address that was loaded insecurely.
  3. Search the page source for the text http:// and see which addresses appear.
  4. Check the theme, plugins, widgets, embedded videos, fonts, analytics snippets and advertising code, because they often bring their own links.

How to fix it

  • Change each address from http:// to https://, or to a relative path that does not mention the protocol at all.
  • In a content management system, use the tool or setting that updates stored addresses in the database, and take a backup first.
  • Replace any third-party resource that is not available over HTTPS. Most reputable services support it.
  • After the fix, reload with the cache cleared to be sure you are not seeing old results.

A page can be served over HTTPS and still contain a form that sends data to an address starting with http://. Browsers treat this seriously, because the person typing a password or card details expects the data to be protected. Some browsers show a warning before submission, and some show a warning on the page itself.

Check the action address of every form, including login forms, contact forms, search boxes and newsletter sign-ups. Also check embedded payment or booking widgets. If a form posts to an insecure address, change it to HTTPS. If it belongs to a third-party service, ask that service for the correct secure address.

Cause 3: A certificate problem that the padlock does not catch

Sometimes the main page certificate is fine, but another part of the site uses a different one with a problem.

  • A subdomain with a different or missing certificate. For example the main site is valid, but shop.yourdomain.com or a file-hosting subdomain is not covered. A certificate covers only the names it lists, unless it is a wildcard certificate for one level of subdomains.
  • An incomplete certificate chain. The server sends only its own certificate and leaves out the intermediate one. Some devices can fetch the missing piece, others cannot, so the site seems fine on a laptop and warns on a phone. The fix is to install the full chain supplied by the certificate authority.
  • An expiring or expired certificate on a resource host. The page itself is renewed, but a separate host for images or scripts has an old certificate.
  • A name mismatch. The certificate was issued for yourdomain.com but visitors reach www.yourdomain.com, or the reverse. Make sure both names are listed, or redirect one to the other.

You can see these details by clicking the icon next to the address and choosing the certificate view. Check the "issued to" names, the validity dates and the issuer. For a plain-language overview of what certificates are and what types exist, see the SSL certificate page.

Cause 4: Problems on the visitor's side

Not every warning is the site's fault. Before changing anything on the website, rule out these local causes, especially if only one person or one device reports the problem.

  • Wrong date or time. Certificates have validity periods. If a device clock is off by a long time, valid certificates look expired or not yet valid.
  • Security software that inspects HTTPS. Some antivirus tools, office firewalls and school networks sit in the middle and re-sign traffic with their own certificate. This can cause warnings or change the displayed certificate.
  • A captive portal. On hotel or cafe Wi-Fi, a login page can interrupt secure connections until you sign in.
  • An outdated browser or operating system. Very old systems may not trust newer certificate authorities or may not support current encryption settings.
  • Browser extensions. Some extensions inject content into pages and cause mixed content or script errors.

A quick test is to open the site from another device on a different network, such as a phone on mobile data. If the warning disappears, the cause is local.

Cause 5: The warning is about content, not encryption

Some warnings have nothing to do with certificates. Browsers also display full-page red warnings for sites that appear to host malware or deceptive pages, based on lists such as Google Safe Browsing. These screens use wording like "Deceptive site ahead" or "The site ahead contains malware". The padlock may be present, because a harmful site can still use perfectly valid HTTPS.

If you are the owner and see this, it usually means the site was compromised or was flagged by mistake. Scan the site for injected code, remove it, change passwords, update software and then request a review through the search engine's webmaster tools. A padlock does not protect against this, and neither does a certificate. It is an important reminder that encryption and trust are not the same thing, a theme explored for sites that collect money in building a trustworthy donation website and in preparing a domain and SSL for an event ticket website.

Quick diagnosis table

What you see Most likely cause First action
Padlock with a small warning or line through it Mixed content Check the Console for http:// addresses
Some images or scripts missing Active mixed content blocked Change those addresses to HTTPS
Warning on a form page Form posts to HTTP address Check each form's action address
Fine on laptop, warning on phone Incomplete certificate chain Install the full chain from the issuer
Works on main name, warns on a subdomain Certificate does not list that name Reissue or use a wildcard certificate
Warning only on one device Wrong clock or security software Fix date and time, test another network
Full red page about malware Site flagged as harmful Clean the site and request a review

A worked example

A small online shop owner notices that the product page shows a padlock, but one browser adds a warning and the product images are missing on some visits.

  1. They open developer tools and see a Console message that three images are loaded from http:// addresses.
  2. They search the theme settings and find the old logo and banner links, written before HTTPS was turned on. They also find that one image gallery plugin builds its links with the insecure prefix.
  3. They update the stored addresses in the shop's settings and change the plugin option to use HTTPS. A backup is taken first.
  4. They check the checkout form and see it already posts to an HTTPS address.
  5. They reload with the cache cleared. The Console is clean, the images appear and the warning is gone.
  6. Finally they test the page from a phone on mobile data to confirm the result on another device.

Nothing was wrong with the certificate. The padlock was real, but a few leftover links undermined it.

Limits and what to watch for

  • A padlock is not a verdict. It does not mean the site is safe to trust, only that the connection is encrypted and the name matches.
  • Do not ignore browser warnings on sites that handle passwords or payments. Mixed content or insecure forms can expose data.
  • Do not install a new certificate when the certificate is not the problem. Many owners buy another one when the real cause is a hard-coded link.
  • Renewal matters. Certificates expire. Set a reminder or use automatic renewal where your provider offers it, and check that every host and subdomain is covered.
  • Test on more than one device. A site can pass on your desktop and fail on an older phone.
  • Keep changes small and documented. Change one thing, reload, and note the result.
  • Expect differences between browsers. Icons, wording and thresholds change from version to version, so do not rely on a single screenshot.

Summary

A padlock proves only that the connection is encrypted and that the certificate matches the domain. A warning beside it usually points to mixed content, an insecure form, a certificate gap on a subdomain or an incomplete chain, a problem on the visitor's device, or a content warning unrelated to encryption. Use the developer tools to find the exact address or message, fix the specific item, clear the cache and test again on another device and network. Treat the padlock as one signal among several, not as proof of safety.

If you need a certificate that covers the names your site uses, the SSL page is a good place to compare what is available.

Frequently asked questions

Why does my site show a padlock but the browser still says not secure?

The padlock only describes the connection between the browser and the server. The warning usually comes from something else on the page, such as images or scripts loaded over plain HTTP (mixed content), a form that submits to an insecure address, or a certificate problem on a resource.

What is mixed content?

Mixed content happens when a page loaded over HTTPS also pulls in files such as images, scripts or stylesheets over plain HTTP. Browsers may block those files or lower the page's security indicator.

Does a padlock mean the website is trustworthy?

No. A padlock means the traffic between you and the site is encrypted and the certificate matches the domain name. It does not prove the owner is honest or that the content is safe.

How do I find which file causes the warning?

Open the browser developer tools and look at the Console and Security or Network panels. Mixed content messages name the exact address that was loaded insecurely, so you can update it to HTTPS.

Can the wrong clock on my computer cause this?

Yes. If the date or time on your device is far from the real time, certificates can look expired or not yet valid, and the browser may show warnings even on a correctly set up site.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need an SSL certificate?

Pick the certificate type that fits your site and see the price before you check out.

SSL from $14.99

See SSL certificates

Keep reading

SSL Guides

Domain Connected to the Website but HTTPS Still Missing

Pointing a domain at a website does not turn on HTTPS by itself. A certificate must be issued, installed on the right host and used by a redirect. Here is how to find the missing step.

9 min read

SSL Guides

Building Trust and HTTPS for a Donation Website

Supporters give only when they trust the page. This guide explains HTTPS, certificates and the visible trust signals a donation website needs before it goes live.

10 min read

SSL Guides

Selling Event Tickets Online: Preparing Your Domain and SSL

A practical guide to choosing a domain, preparing DNS and installing an SSL certificate before you start selling event tickets online.

9 min read