SEO

Mixed Content

Also called Insecure content, mixed active content

A secure page that requests images, scripts or styles over plain HTTP, which browsers then flag or refuse to load.

Quick facts: Mixed Content

Category
SEO
Also called
Insecure content, mixed active content
Level
Intermediate
Affects
Page rendering, form and tracking reliability, visitor trust
Where to see it
Browser console, Screaming Frog, hosting or CDN request logs
In this article4
  1. How mixed content works
  2. Why mixed content matters
  3. Where mixed content comes from
  4. How to act on it

How mixed content works

A page delivered over HTTPS is encrypted and tamper-evident. Everything it then asks for — images, stylesheets, scripts, fonts, videos, embedded frames — is a separate request, and each of those can be written with a plain HTTP address. When that happens the page is a mixture: the document itself is protected, some of what it loads is not. Browsers call this mixed content and they do not treat it kindly.

They divide it in two. Passive mixed content is material that only gets displayed, such as an image or a video file. It can be altered in transit, so a browser may block it or strip the padlock, but it cannot take over the page. Active mixed content is anything that can change how the page behaves — scripts, stylesheets, frames, background data requests. A script arriving over an open connection could be swapped for a different one and would then have complete control of the page, so browsers refuse to load it at all. Many browsers also try upgrading insecure requests to HTTPS automatically, and block the request when that fails.

Why mixed content matters

The immediate effect is that things stop working with no error message a visitor can understand. A stylesheet is blocked and the layout collapses. A script is blocked and the enquiry form no longer submits, the menu will not open, or the tracking that was meant to record a lead never fires. Images simply disappear. Nothing in the page tells the visitor why.

It matters for search as well, because search engines render pages before judging them. A blocked script that builds part of the content means that content is not there when the page is assessed. And the padlock the visitor was reassured by either disappears or turns into a warning, on a page that may well be the one asking for their phone number.

Where mixed content comes from

Most of it is left over from a move to HTTPS. Content written years ago holds absolute plain-protocol addresses in the body text, in image tags and in stored database fields, and switching the site over does not rewrite any of them. Themes and plugins that hardcode their own asset paths do the same.

The rest hides in less obvious places: an image referenced inside a stylesheet rather than in the page, a third-party widget or embed that still serves its own files insecurely, an old marketing template, a canonical or hreflang tag written with the wrong protocol. A common mistake is to fix the visible cases, see the padlock return on the home page, and assume the site is clean when interior templates are still affected.

How to act on it

Find it properly rather than by browsing. The browser console names every blocked or upgraded request on the page you are looking at, and a full crawl will find the pages you would never think to open. Fix the source: rewrite stored addresses in the database with a tool that understands serialised data, correct the theme and plugin references, and replace or drop any embed whose provider still serves insecurely.

Treat a policy that upgrades insecure requests automatically as a temporary safety net, not a repair — it hides the symptom while the wrong addresses stay in your content. Once the site is genuinely clean, and only then, consider HSTS to stop the plain protocol being attempted at all. Re-crawl after each change, because moving from HTTP to HTTPS tends to surface these in waves rather than all at once.

Do and do not

Do

  • Read the browser console on the affected page first
  • Rewrite stored addresses with a serialisation-safe search and replace
  • Re-crawl the whole site after every fix

Do not

  • Judge the site by the home page padlock
  • Leave an automatic upgrade policy standing in for a repair
  • Keep an embed whose provider still serves plain HTTP

Questions people ask about this

Why does my padlock disappear on some pages only?

Because the insecure request is on those pages and not on others. Mixed content is judged page by page, so a clean home page tells you nothing about a blog post written years earlier, or a product template that loads one old image. Check the browser console on the affected page, then crawl the whole site rather than spot-checking.

Is mixed content an SEO problem or a security problem?

Both, and the security side comes first. An insecurely loaded script can be replaced in transit and then controls the page, which is why browsers block it outright. The SEO damage follows from that: blocked scripts mean content that never renders, forms that never submit, and tracking that never records the lead you paid for.

Can I just force everything to HTTPS with a header?

A policy that upgrades insecure requests will stop most of the visible symptoms, and it is a reasonable stopgap during a migration. It is not a fix. The wrong addresses remain in your content and will break again the moment the policy is removed or a resource has no secure version available. Correct the underlying references.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.