Mixed content blocking in Firefox

Revision Information
  • Revision id: 108120
  • Created:
  • Creator: Joni
  • Comment: adding back tanvi's change from a few revisions ago.
  • Reviewed: Yes
  • Reviewed:
  • Reviewed by: heyjoni
  • Is approved? Yes
  • Is current revision? No
  • Ready for localization: No
Revision Source
Revision Content
Please update your version of Firefox for the latest features and security updates.

When you visit a webpage that contains insecure content, Firefox blocks that content and displays the shield icon in the address bar. We'll explain what is mixed content, why Firefox blocks it and what options you have.

Insecure1 34 - Win

Insecure1 39 - Lin en

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 padlockgreen padlock Fx57GreenPadlockpadlock Fx70GreyPadlock icon 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.

What options do I have?

Most websites will continue to work normally without any action on your part.

If you need to allow the mixed content to be loaded, displayed or executed, you can do that easily:

  • Click the shield icon Mixed Content Shield in the address bar, click Options and choose Disable protection for now.
Insecure2 34 - Win

Insecure2 39 - Lin en

  • The icon in the address bar will change to an orange warning triangle Warning Identity Icon to remind you that insecure content is being displayed.

When insecure content is being displayed, the shield icon has a red strike-through. To re-block mixed content, click the shield icon again, click Options and choose Enable protection.

Insecure3 34 - Win

Insecure3 39 - Lin en The content will also be re-blocked automatically when you go to another website in the current tab and then go back or re-visit the website in a new tab.

The icon is a gray triangle

The image "Mixed passive content" does not exist.

Mixed passive content fx39 Linux en Only the potentially harmful part of HTTP content is blocked so some websites may still have some HTTP content (such as images, video or audio). In that case, the connection between Firefox and the website is still partially encrypted and should not be considered safe against eavesdropping, hence the gray triangle icon.

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

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 padlockgreen padlock Fx57GreenPadlockpadlock Fx70GreyPadlock icon 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?

Look for an icon in your address bar to determine if the page has mixed content.

mixed content icon url 42

No mixed content: secure

  • green lock 42: You’ll see a green lock when you are on a fully secure page that doesn’t attempt to load any insecure elements.

Mixed content is blocked: secure

  • blocked secure 42: You'll see a green lock with a grey warning triangle when Firefox has blocked any insecure elements on the page. This means that the page is now secure. Click on the icon to expand the Control Center and see more security details about that page.

Mixed content is not blocked: not secure

  • unblocked mixed content 42: If you see a lock with a red line over it, Firefox is not blocking insecure elements, and 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.
  • orange triangle grey lock 42: A grey lock with an orange triangle indicates that Firefox is not blocking insecure passive content. Attackers may be able to manipulate parts of the page, for example, by displaying misleading or inappropriate content, but they shouldn’t be able to steal your personal data from the site.

Unblock mixed content

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

  1. Click the lock icon in the address bar.
  2. Click the arrow on the Control Center:
    unblock mixed content 42
  3. Click Disable protection for now.
    disable protection 42

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.