BreachHunter
Pricing Blog Log inSign up
● thermal huntscan engines onlineassessment only — no exploits
  1. Home
  2. Blog
  3. Mixed Content: Why Your HTTPS Page Still Loads Insecure Resources

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

By the Ingenious AI team

The short answer: Mixed content is when a page served over HTTPS loads a sub-resource — a script, stylesheet, image, iframe or fetch call — over plain HTTP. The padlock promise breaks at the weakest reference: an active resource like a script loaded over HTTP can be rewritten in transit and then runs with the secure page's authority. Modern browsers block active mixed content outright and auto-upgrade or block much of the rest, so the finding shows up as both a security gap and a “parts of this page just broke” bug.

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:

  1. Crawl the full site and log every sub-resource loaded over http:// — do not rely on template searches alone.
  2. Fix references at the source: templates, then the content database, then CSS files, then third-party embed settings.
  3. Verify each third-party endpoint actually serves HTTPS before switching its URL.
  4. Add upgrade-insecure-requests to your CSP as a safety net, and use CSP reporting to catch regressions.
  5. 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.
Share this: X · Facebook · LinkedIn · WhatsApp

Related guides

  • Website Security Test: What It Checks, What It Misses, and How to Read Yours · 9 min read
  • Website Security Cheat Sheet: Headers, TLS, Cookies and Exposed Files · 7 min read
  • What a Website Security Assessment Actually Tests · 10 min read
  • TLS/SSL Basics: What Your Certificate Says About Your Site · 8 min read
  • Common Website Misconfigurations (and How to Fix Them) · 11 min read
  • Reading Your First Pentest Report: From Score to Action · 9 min read
  • Deleted ≠ Gone: What the Wayback Machine Keeps After You Delete Your Secrets · 9 min read
  • SQL Injection in Plain English: How One Login Box Can Read Your Database · 9 min read
  • What Does a Website Security Scan Check? · 8 min read
  • Exposed .git Directory: What It Leaks and How to Check · 7 min read
  • Security Headers Missing? What Each Header Stops · 7 min read
  • How Much Does a Penetration Test Cost in 2026? · 7 min read
  • Website Security Checklist for Small Teams (60-second self-check) · 6 min read
  • Reading Your Scan Results: Which Findings Fix First? · 7 min read
  • Content-Security-Policy Missing: What CSP Does and How to Add It Safely · 8 min read
  • HSTS Missing: What Strict-Transport-Security Prevents · 7 min read
  • Clickjacking and X-Frame-Options: How Framing Attacks Work · 7 min read
  • Cookie Flags Explained: Secure, HttpOnly and SameSite · 8 min read
  • Exposed .env File: What Leaks, What Attackers Do Next, What You Do First · 8 min read
  • Directory Listing Enabled: What It Shows Attackers and How to Disable It · 7 min read
  • Expired SSL Certificate: What Breaks, Why Renewal Fails, and How to Catch It Early · 7 min read
  • TLS 1.0 and 1.1 Still Enabled: Why Old Protocols Show Up as a Finding · 7 min read
  • Open Ports on a Web Server: Which Ones Should Never Face the Internet · 8 min read
  • No SPF or DMARC Record: How Missing Email Auth Exposes Your Website · 7 min read
  • Subdomain Takeover: How a Dangling DNS Record Lets Attackers Claim Your Name · 7 min read
  • Forgotten Subdomains: The Staging Site You Forgot Is Still Public · 7 min read
  • WordPress Security Scan: The Exposures an Assessment Finds on WordPress Sites · 8 min read
  • Exposed Backup Files: .bak, .old and .zip Files Sitting in Your Web Root · 7 min read
  • phpinfo() in Production: The Diagnostic Page That Maps Your Server for Attackers · 7 min read
  • Server Version Banners: Why Your Headers Point Attackers to the Right Exploit · 7 min read
  • End-of-Life Software: Running a Server Stack Nobody Patches Anymore · 7 min read
  • CORS Misconfiguration: When Cross-Origin Sharing Opens Your Data to Any Site · 7 min read
  • Open Redirect Vulnerability: How Your Own Domain Sends Visitors to a Phishing Page · 7 min read
  • Dangerous HTTP Methods: What TRACE, PUT and DELETE Should Never Answer · 7 min read
  • Host Header Injection: Poisoned Reset Links and Cache Attacks Explained · 7 min read
  • What Is security.txt? The Small File That Lets Researchers Reach You · 6 min read
  • Admin Panel Exposed to the Internet: What an Assessment Flags and Why · 7 min read
  • phpMyAdmin Exposed: Why This Database Door Is a Prime Brute-Force Target · 7 min read
  • Spring Boot Actuator Exposed: Environment Dumps, Heap Leaks and Shutdown Endpoints · 7 min read
  • Debug Console in Production: The Finding That Can Become Code Execution · 7 min read
  • Exposed AWS Credentials File: The /.aws/credentials Finding, Explained · 7 min read
  • Referrer-Policy and Permissions-Policy: The Two Quiet Headers You Are Probably Missing · 6 min read
  • Exposed package.json: Your Dependency List Is a Recon Gift · 6 min read
  • DNS Zone Transfer Open (AXFR): Handing Out Your Entire DNS Map · 6 min read
  • Certificate Name Mismatch: Why the Cert Does Not Match Your Domain · 6 min read
  • Website Security Assessments for Agencies: Checking Every Client Site Without a Security Team · 8 min read
  • SaaS Security Questionnaires: What Buyers Check About Your Website First · 8 min read
  • Ecommerce Website Security: The Exposures That Put Your Checkout at Risk · 8 min read
  • Small Business Website Security: The Checks That Matter at Your Size · 7 min read
  • How to Prepare for a Website Security Assessment (and Read the Report Calmly) · 7 min read
  • Vulnerability Severity Explained: What Critical, High, Medium and Low Actually Mean · 7 min read
  • Retest After Fixes: How to Prove a Security Finding Is Actually Closed · 7 min read
  • Security Assessment vs Vulnerability Scan vs Pentest: What Is the Difference? · 7 min read
  • How Long Does a Website Security Scan Take? · 6 min read
  • Website Security Drift: Why Last Month's Clean Scan Is Already Out of Date · 7 min read
  • WordPress Site Keeps Getting Hacked After Cleanup · 8 min read
  • Google Blacklist Removal: Getting the Red Warning Off Your Site · 8 min read
  • VirusTotal Flagged My Site: How to Clear a False Positive · 8 min read

Related from the Ingenious AI suite

  • Ingenious AI — the full suite of security and compliance tools
  • DomainGuard — domain impersonation and typosquat defense
  • See BreachHunter pricing →
BreachHunter · by Ingenious AI · read-only security assessment — scan only targets you own or are authorized to test
About · Contact · Blog · vs Intruder · Privacy · Terms · Security · Threats · Nextcloud Check · Verify Evidence · Help · Redeem
More from Ingenious AI:
DisclosureGuard — AI disclosure compliance · Vibe-Code Audit — AI code security scanner · Rogue-Agent Defense — AI agent firewall · ChatBreaker — AI chatbot red-teaming · ModelMinder — AI model deprecation radar · TermsWatch — AI vendor terms monitor · Agent Flight Recorder — tamper-evident agent audit trails · Agent Auth Gateway — agent credentials & kill switch · DomainGuard — domain impersonation defense · Agent Passport — Know-Your-Agent registry · AgentGate — agent policy publisher · AgentBlock — AI agent & crawler access control · BoundaryVault — agent log forensics · Agentic Receipts — verifiable agent payment receipts · EvalEgress — eval-to-production exposure scan · HomeShield MCP — home AI server exposure check · WireWatch — payment verification ceremony · ADMT Notice Kit — AI decision notice compliance · DueLadder — human-approved invoice chasing · Agent-Ready Store Audit — can AI agents buy from your store · ContentCraft AI — content operations · AgentReady — agent-readiness checks · AI Audit Exchange — AI audit exchange · CallbackShield — callback & webhook protection · CompanionGuard — AI companion safety guardrails · CRAClock — EU Cyber Resilience Act deadline clock · EInvoice Translator — e-invoice format translator · GEOFixer — geo & local listing fixes · MandateGuard — agent spending mandates · OutcomeMeter — AI outcome measurement · ProvenanceGuard — content provenance checks · ReviewDesk — review response desk · ReviewProof — verified review evidence · TakedownCoop — coordinated phishing takedowns · TrustGate — trust & safety gating · BreachHunter — website penetration testing · All 36 platforms — the Ingenious AI portfolio

We use cookies. Necessary cookies keep the site working. With your permission we also use analytics cookies (to understand usage) and marketing cookies (for ads). Read our privacy policy.

NecessaryRequired for login, security and core features. Always on.
AnalyticsHelps us understand which pages are useful.
MarketingUsed for advertising and measuring ad performance.

    No match. Try “pricing”, “php2shell” or “contact” — or press Esc to close.

    ↑↓ navigate · Enter open · Esc close