1

I wish to block loading of https resources in Firefox on pages that are served via http protocol.

Think of these elements to be blocked/filtered:

  • img src="https://*"
  • script src="https://*"
  • iframe src="https://*"
  • frame src="https://*"

I could imagine writing an Adblock Plus "Ad Blocking Rule"/filter that blocks all these request only on http protocol pages.

How to block loading mixed content in Firefox?

4
  • 2
    Have you made any attempts to write this filter rule, other than just the list you provided? If so, what have you tried and where did they fail?
    – techturtle
    Jan 23, 2013 at 21:23
  • Don't know how to limit the filter to http:// sites/domains/served pages.
    – Pro Backup
    Jan 23, 2013 at 21:28
  • 1
    Adblock Plus has an active forum with a section specifically for filter rule writing: <adblockplus.org/forum/viewforum.php?f=2> Have you asked there too?
    – K.A.Monica
    Jan 23, 2013 at 22:43
  • @K.A. The forum thread Blocking HTTP content when using HTTPS is most relevant. The ABP developer confirms that "blocking mixed content is generally a bad idea".
    – Pro Backup
    Jan 23, 2013 at 22:58

2 Answers 2

0

Since Firefox version 18 you don't need an extension to block mixed content on https sites.

Enable mixed content blocking in about:config, by setting these two values to true:

  1. security.mixed_content.block_active_content
  2. security.mixed_content.block_display_content

Source: http://techdows.com/2012/11/make-firefox-18-beta-to-block-mixed-content-on-https-websites.html

0

Create a "user defined" NoScript Firefox extension rule in the Application Boundary Enforcer (Options > Advanced > ABE) section like:

Site http:
Deny INC from https:

Site https:
Deny INC from http:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .