Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 '13 at 21:23
    
Don't know how to limit the filter to http:// sites/domains/served pages. – Pro Backup Jan 23 '13 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 Jan 23 '13 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 '13 at 22:58

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

share|improve this answer

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:
share|improve this answer

You must log in to answer this question.

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