Skip to main content
TLSHigh PriorityFree

What Is Mixed Content on HTTPS Pages

Updated November 2026·SecScanner Team

Mixed content occurs when HTTPS pages load resources (scripts, images, etc.) over insecure HTTP.

0% of the 99 most-visited sites we scan fail this check. See the full data.

Results in 1–3 minutes · Free · No signup required

Want the result for your own site? Free Mixed Content Checker — paste your domain, get the report.

Why It Matters

Mixed content undermines HTTPS security. Active mixed content (scripts) is blocked by browsers. Passive mixed content (images) shows warnings and can be modified by attackers.

How We Check

We scan your page for resources loaded over HTTP and identify active vs passive mixed content issues.

Good vs Bad Values

Good and bad values for Mixed Content
ValueVerdictWhy
<script src="https://cdn.example.com/app.js"></script>GoodAn absolute HTTPS URL. Nothing here for the browser to block or the scan to flag.
<img src="/images/logo.png">GoodA relative URL inherits the page's scheme, so it is always HTTPS on an HTTPS page.
<img src="//cdn.example.com/a.png"> (protocol-relative)WeakWorks on an HTTPS page because it inherits the scheme, but it is a legacy pattern. An explicit https:// URL is clearer and survives being copied to an email or an HTTP page.
<script src="http://cdn.example.com/app.js">BadActive mixed content. Browsers block it, so the feature the script provides silently stops working, and the request itself was open to tampering.
<link rel="stylesheet" href="http://fonts.example.com/css">BadBlocked stylesheets leave the page unstyled or with fallback fonts. A tampered stylesheet can also hide or restyle content.
<iframe src="http://widgets.example.com/embed">BadA framed HTTP page is active content. It is blocked, and if it were not, it could rewrite what the visitor sees.
<img src="http://example.com/photo.jpg">BadPassive mixed content. Modern browsers upgrade images to HTTPS or block them, and the padlock reports the page as not fully secure if the upgrade fails.
<video><source src="http://media.example.com/clip.mp4"></video>BadAudio and video count as passive content in browsers, but they leak what the visitor is watching and the check still fails them.

How to Fix

Update all resource URLs to use HTTPS. Use protocol-relative URLs (//) or absolute HTTPS URLs. Add CSP upgrade-insecure-requests directive.

Find every occurrence first. Search your source and database dumps for the literal scheme:

grep -rIn 'http://' ./public ./templates ./src | grep -v 'http://www.w3.org'
# WordPress: wp search-replace 'http://example.com' 'https://example.com' --dry-run

Add upgrade-insecure-requests as a safety net while you clean up. It tells the browser to rewrite http:// subresource URLs to https:// before fetching them. It only helps when the other host really serves HTTPS.

Nginx:

add_header Content-Security-Policy "upgrade-insecure-requests" always;

Apache:

Header always set Content-Security-Policy "upgrade-insecure-requests"

If you already send a full CSP, add upgrade-insecure-requests as one more directive in that header instead of sending a second header. The directive is a stop-gap: still fix the URLs so the page does not depend on a browser feature.

Then watch for regressions. Send a Content-Security-Policy-Report-Only: default-src https: 'unsafe-inline' 'unsafe-eval' data: blob:; report-uri /csp-report header for a while to collect any remaining http: loads from real traffic before you rely on a clean scan.

Common Mistakes

  • Replacing URLs in the templates and forgetting the database. Old posts and CMS fields keep `http://` links that are rendered on every page.
  • Searching only the HTML. Mixed content also hides in CSS (`url(http://…)`), inline styles, JavaScript that builds tags at run time, and framed pages that are not yours.
  • Assuming the browser silently fixes it. Auto-upgrade for images and media varies by browser, and scripts, stylesheets and iframes are blocked, not upgraded.
  • Pointing at a third-party host that has no HTTPS version at all. The only real fixes are self-hosting the file or removing the dependency.
  • Relying on the scan's HTML view alone. This check reads the static source of the page it loads, so resources added later by JavaScript are not seen. Watch the browser console for `Mixed Content` warnings as well.
  • Hard-coding `http://localhost` or staging URLs in production builds, which show up as blocked requests only for real visitors.

Frequently Asked Questions

What is Mixed Content?

Mixed content occurs when HTTPS pages load resources (scripts, images, etc.) over insecure HTTP.

Why does Mixed Content matter for website security?

Mixed content undermines HTTPS security. Active mixed content (scripts) is blocked by browsers. Passive mixed content (images) shows warnings and can be modified by attackers.

How do I fix Mixed Content issues?

Update all resource URLs to use HTTPS. Use protocol-relative URLs (//) or absolute HTTPS URLs. Add CSP upgrade-insecure-requests directive.

Related Security Checks

Related Tool

Mixed Content Checker

Run all 4 related checks with our free mixed content checker

Check Your Website Now

Run a free security scan to check for Mixed Content issues and 61 other security checks.

Scan Your Website Free