Skip to content

Technical pillar / check mixed-content

Mixed content: does a secure page load anything over plain HTTP?

On each HTTPS page we read, we list the images, scripts, styles, frames and other files it loads from http:// addresses. Browsers block insecure scripts, styles and frames, so parts of the page can break for visitors and for any crawler that renders it.

By , Founder and CEO, Own The Climb · Last updated

This is how we check it

On a secure (https://) page, we look for images, scripts, styles and frames still loaded over plain http://.

  • We read the addresses of image and media sources, scripts, frames, style sheets, icons and other files the page loads.
  • We read the HTML your server sends and, when we rendered the page, the page as a browser shows it.
  • We report a high finding for http:// resource references that an enforced Content-Security-Policy does not upgrade, with up to five listed.

Our reasoning behind this

Browsers upgrade some insecure files and block others. A blocked style sheet leaves the page unstyled, and a blocked script can leave a menu, a form or content missing, for visitors and for crawlers that render the page.

How we would fix it on your site

  1. Change each listed address to https://, after checking the file loads there; if it does not, host the file yourself.
  2. Search your database, theme and templates for any remaining "http://your-domain" and replace it.

Once your change is live, run the audit again and review the new findings alongside the pages it covered.

How to make the change on your platform

What to do on each platform
PlatformWhat to do
WordPressSet both addresses under Settings, General to https://, then replace old http:// addresses in the database with a search-and-replace plugin or WP-CLI (wp search-replace).
Shopify, Squarespace and WixFiles you upload are served over HTTPS. Look for http:// in custom code blocks, embeds and theme code edits.
Next.jsUse https:// in next/image remotePatterns and in any absolute asset URLs, and set the header in next.config headers() if you need the safety net.

What we want you to review

  • Update http:// image addresses left in older posts after moving the site to HTTPS.
  • Check whether a theme or plugin still stores the site address with http://.
  • Use secure addresses for third-party embeds and widgets.
  • Check inline CSS for fonts and background images that still use http://.

The exact rules our audit applies

We wrote this part for your developer or your SEO specialist. It sets out the inputs, scoring rules and confidence limits we publish for this check, together with the full explanation of how we would fix a finding.

The inputs we describe for this check

Every http:// address the page loads as part of itself: the src or srcset of images, sources, scripts, frames, video and audio (and a video poster), the data of an object, <link> files the browser fetches (stylesheet, icon, apple-touch-icon, manifest, preload, modulepreload and prefetch), and url(http://...) in style attributes and <style> blocks.

We read the HTML your server sends and, when we rendered the page, the page after its scripts ran, and count each distinct address once. Ordinary links people click, form actions, preconnect hints and canonical or alternate links are not mixed content and are not counted. We do not open external stylesheets or scripts to look inside them.

The check runs only on pages served over HTTPS.

Our full reasoning

MDN describes how browsers treat mixed content: they "automatically upgrade requests for upgradable content from HTTP to HTTPS, and block requests for the blockable content". Images, audio and video are upgraded, and blocked when the address is an IP address; scripts, stylesheets and iframes are blocked. A blocked stylesheet leaves a page unstyled, and a blocked script can leave a menu, a form or content that a script builds missing.

Google renders pages in an evergreen Chromium when it indexes them, so content that depends on a blocked script can be missing for Google too, and for AI answer engines that read the rendered page. Google also prefers an HTTPS page over its HTTP twin when it chooses which address to show.

How we score what we find

Measured, on every HTTPS page we read. One or more insecure references is a HIGH technical finding, with up to five of them listed. When the page's enforced Content-Security-Policy sets upgrade-insecure-requests, browsers fetch those addresses over HTTPS, so they are an informational note instead.

A policy in the response header covers the whole page. A <meta> policy counts only in the head of the page and covers only what comes after it, so an insecure reference written before the <meta> stays a HIGH finding. None passes.

An HTTP page is shown as not applicable and does not count toward the score; the HTTPS and HSTS check grades it instead.

How sure we are of each result

HIGH when nothing insecure is found. MEDIUM when references are found, because a browser may upgrade an image or video to HTTPS successfully, so not every listed address breaks. Files loaded only inside an external stylesheet or script are not seen.

How to fix it, in full

Change each listed address to https://, after checking that the file loads at the https:// address; if it does not, host the file yourself. Then search your database, theme and templates for any remaining "http://your-domain" and replace it. As a safety net while you clean up, the header "Content-Security-Policy: upgrade-insecure-requests" tells browsers to request every subresource over HTTPS.

Then load the page with the browser console open to confirm no mixed-content warnings remain, and re-run the audit.

The sources we rely on

What we have changed on this page

  • · Rewritten in plain words: what we check, why it matters and how to fix it come first, and the full rules sit one click down. We corrected the full rules to describe only what we check today.
  • · A Content-Security-Policy <meta> on a page that leaves out its <head> tag now counts, and one placed after an insecure reference no longer covers it.
  • · An enforced upgrade-insecure-requests policy now makes http:// references an informational note.
  • · Initial publication. The check now reads the address the page was served from after redirects, and an HTTP page is shown as not applicable instead of passing.