Guides · ← All guides
Mixed Content: Why Your HTTPS Page Still Loads Insecure Resources
Published: November 14, 2026 · Last reviewed: November 14, 2026 · 7 min read
Run a free BreachHunter assessment on your site →
Mixed content is the residue of every rushed HTTP-to-HTTPS migration: the site moved, the certificate is fine, but somewhere in a template, a database field or a hardcoded theme file, an http:// reference survived. Years later it is still there, quietly downgrading one page at a time.
An assessment that crawls your pages and inventories sub-resource schemes will file these one by one. This guide separates the dangerous kind (active content: scripts, styles, iframes, XHR) from the merely embarrassing (passive images), and gives the hunt order that actually finishes the job — including the two hiding places, database content and CSS files, that template searches miss.
Active versus passive: which mixed content matters?
Active mixed content can execute or reshape the page: scripts, stylesheets, iframes, fonts in some engines, and fetch/XHR calls. A network attacker who can rewrite an HTTP script response owns the HTTPS page it lands on — that is the whole ballgame, and why browsers now refuse these loads and why scanners rate script-level mixed content seriously.
Passive content — images, video, audio — cannot execute, but it still leaks: the request travels unencrypted, revealing the page and resource, and an attacker can swap the image itself (a replaced chart, a fake badge, a defaced product photo). Browsers increasingly auto-upgrade image requests to HTTPS and block them if that fails, turning yesterday's invisible flaw into today's missing product photos. Both classes belong in the same cleanup; they just schedule differently.
Where does mixed content hide?
Four places, in the order a hunt should visit them. Templates and theme files with hardcoded absolute URLs. The database: years of post content, product descriptions and widget settings stored with http:// baked in — the single biggest source on CMS sites, and the reason a code search alone never finishes this job. CSS files, which reference background images and fonts by absolute URL and are invisible to page-source searches. And third-party embeds configured before the migration, still pointing at their HTTP endpoints.
The systematic instrument is a crawl, not a grep: load every page the way a browser does, log every sub-resource scheme, and let the list drive fixes. That is the same method the assessment's web-audit phase uses, which is why owners are often surprised by findings in content “nobody has touched in years” — exactly. A Content-Security-Policy with upgrade-insecure-requests is a useful safety net during cleanup, and report-only CSP will enumerate offenders for you — the rollout pattern is in our CSP guide.
Worked example: lumendental.example
Lumen Dental Group's HTTPS migration was three years old when its assessment reported mixed content on 11 pages. The templates were clean. The offenders were in the content database: before-and-after galleries and two insurance-widget embeds written in 2022 with absolute http:// URLs.
Page: https://lumendental.example/services/implants INSECURE script: http://widgets.example-insurance.com/quote.js INSECURE image: http://lumendental.example/wp-content/uploads/scan-2019.jpg (11 pages, 17 insecure sub-resources total)
The fix was a database search-and-replace of the group's own domain and the widget vendor's HTTPS endpoint (verified to exist first — an upgrade to a non-existent HTTPS URL just trades a warning for a 404), followed by upgrade-insecure-requests in the CSP as a permanent net. Retest: zero insecure sub-resources, and the group's Chrome visitors stopped seeing the “not secure” chip on the two gallery pages that had quietly carried it for years.
The five actions to take
Finishing a mixed-content cleanup so it stays finished:
- Crawl the full site and log every sub-resource loaded over http:// — do not rely on template searches alone.
- Fix references at the source: templates, then the content database, then CSS files, then third-party embed settings.
- Verify each third-party endpoint actually serves HTTPS before switching its URL.
- Add upgrade-insecure-requests to your CSP as a safety net, and use CSP reporting to catch regressions.
- Re-crawl after the fix and again after your next content import or theme change — imports are how http:// creeps back.
Run a free BreachHunter assessment on your site →
Frequently asked questions
Why does my browser say “not secure” on only some pages?
Because mixed content is per-page: only pages carrying an insecure reference get flagged. One old blog post with an http:// image marks that page alone, which is why the problem survives — the homepage looks clean while archive pages carry the warning.
Is an http:// link to another site mixed content?
No. Mixed content is about resources the page loads (scripts, images, frames, fetches), not links a visitor may click. Outbound http:// links are worth updating for user trust, but they do not trigger the finding.
Can I just use protocol-relative URLs (//example.com/file.js)?
That was the transitional trick a decade ago; today the answer is to write https:// explicitly. Protocol-relative references inherit the page scheme, which hides the problem on HTTP test environments and is considered an anti-pattern in current guidance.
Will upgrade-insecure-requests fix everything by itself?
It rewrites insecure requests to HTTPS at the browser, which helps for your own domain, but fails where the third-party has no HTTPS endpoint — the resource simply breaks. Treat it as a net under the real fix, not the fix.
How does an assessment find mixed content?
By crawling pages and recording the scheme of every sub-resource request, then reporting each insecure load with its page. It is one of the web-audit checks that requires rendering the page, not just reading headers.
The last five percent: CSS files and background images
Page HTML gets cleaned first because it is easy to grep. The stragglers live one level down: a background image referenced from a stylesheet with an absolute http:// URL, a font file loaded by a theme's CSS, a video poster frame in a plugin's defaults. The page's HTML is spotless and the browser still complains, because the insecure request hides inside a file the cleanup never opened.
Hunt them where they live: search your CSS files and your database (post content and options tables, on WordPress) for http://yourdomain rather than the whole web. Your own domain over HTTP is almost always wrong. Third-party URLs need judgment; your own never does.
Sources
The authorities this guide is built on, in the form we check our own work against:
- MDN — Mixed content (2025) — active versus passive mixed content as browsers classify it.
- W3C Mixed Content specification (2016) — the blocking and upgrading rules browsers implement.