Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.