Mixed content blocking in Firefox

Firefox Firefox Last updated: 55% of users voted this helpful

Firefox protects you from attacks by blocking potentially harmful, insecure content on web pages that are supposed to be secure. Keep reading to learn more about mixed content and how to tell if Firefox has blocked it.

What is mixed content and what are the risks?

HTTP is a system for transmitting information from a web server to your browser. HTTP is not secure, so when you visit a page served over HTTP, your connection is open for eavesdropping and man-in-the-middle attacks. Most websites are served over HTTP because they don't involve passing sensitive information back and forth and do not need to be secured.

When you visit a page fully transmitted over HTTPS, such as your bank, you'll see a padlock icon Fx89Padlock in the address bar (for details, see How do I tell if my connection to a website is secure?). This means that your connection is authenticated and encrypted, and thus safeguarded from both eavesdroppers and man-in-the-middle attacks.

However, if the HTTPS page you visit includes HTTP content, the HTTP portion can be read or modified by attackers, even though the main page is served over HTTPS. When an HTTPS page has HTTP content, we call that content “mixed”. The page you are visiting is only partially encrypted and even though it appears to be secure, it isn't. For more information about mixed content (active and passive), see this blog post.

What are the risks of mixed content? An attacker can replace the HTTP content on the page you're visiting in order to steal your credentials, take over your account, acquire sensitive data about you, or attempt to install malware on your computer.

How can I tell if a page has mixed content?

There are two types of mixed content: mixed passive/display content and mixed active content. The difference lies in the threat level. Look for a padlock icon in your address bar to determine whether the page has mixed content.

Fx89AddressBarPadlock

Note: The shield icon Fx89ShieldIcon in the address bar tells you which trackers have been blocked on a website. See Enhanced Tracking Protection in Firefox for desktop for more information.

No mixed content: secure

  • Fx89Padlock: You’ll see a padlock when you are on a fully secure (HTTPS) page. To see if Firefox has blocked parts of the page that are not secure, click the padlock. For more information, see the Unblock mixed content section below.

Mixed content is not blocked: not secure

  • Fx89Padlock-RedLine: If you see a padlock with a red line over it, the page contains mixed active content and Firefox is not blocking insecure elements. That page is open to eavesdropping and attacks where your personal data from the site could be stolen. Unless you’ve unblocked mixed content using the instructions in the next section, you shouldn’t see this icon on a secure (HTTPS) website. Note: A padlock with a red line is also shown on unencrypted (HTTP) websites.
  • Fx89Padlock-Triangle: A padlock with a triangle indicates that Firefox is not blocking insecure passive content, such as images. By default, Firefox does not block mixed passive content; you will simply see a warning that the page isn't fully secure. Attackers may be able to manipulate parts of the page like displaying misleading or inappropriate content, but they should not be able to steal your personal data from the site.

For more information about mixed active and passive content, see this Mozilla Developer Network article.

Unblock mixed content

Unblocking insecure elements is not recommended but can be done, if necessary:

  1. Click the padlock icon Fx89Padlock in the address bar.
  2. Click the arrow in the Site Information panel:
    Fx89MixedContent
  3. Click Disable protection for now.
    Fx89MixedContent-Unblock

To enable protection, follow the preceding steps and click Enable protection.

Warning: Unblocking mixed content can leave you vulnerable to attacks.
Developers: If your website is generating security errors because of insecure content, see this MDN article on how to fix a website with mixed content.

Was this article helpful?

Please wait...

These fine people helped write this article:

Illustration of hands

Volunteer

Grow and share your expertise with others. Answer questions and improve our knowledge base.

Learn More