[Feature Request] Block 3rd Party Scripts

Bug reports and enhancement requests
Post Reply
yeahman
Posts: 3
Joined: Thu Jul 28, 2011 5:28 am

[Feature Request] Block 3rd Party Scripts

Post by yeahman »

I want to block all third-party scripts only except the ones I whitelist. I can do this by temporarily allowing top-level sites. But the site remains whitelisted until I revoke it manually or restart the browser. This causes problems where, for example, I visit facebook.com, it's temporarily whitelisted, then I visit another site but facebook.com scripts are still allowed. It would be nice if there was an option to allow top-level sites without whitelisting them.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a2) Gecko/20110801 Firefox/7.0a2
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: [Feature Request] Block 3rd Party Scripts

Post by Thrawn »

You can do this with an ABE rule, but you'll have to write exceptions to it by hand:

Code: Select all

Site *
Accept from SELF++
Sandbox
Or RequestPolicy, but that will block all cross-site requests, including images and stylesheets.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (Linux; U; Android 2.2.1; en-gb; GT-S5570 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: [Feature Request] Block 3rd Party Scripts

Post by Tom T. »

yeahman wrote:... It would be nice if there was an option to allow top-level sites without whitelisting them.
There is. It's "temporarily allow", but as you noted, you must remember to "revoke temporary permissions" before leaving the site.
I do this fairly frequently. (Probably more than most, in the process of visiting sites I've never heard of, to help a user with their reported site.)

If the number of sites or scripts to which this applies is fairly small, it might be easier to use Thrawn's ABE suggestion in the opposite manner, by enumerating only the restricted scripts:

Code: Select all

Site .facebook.com .fbcdn.net
Accept from .facebook.com
Deny
... and similarly for other sites.

So it depends on which is easier: Thrawn's rule, with all exceptions added by hand, or this rule, writing only the sites to which it applies.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:12.0) Gecko/20100101 Firefox/12.0
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3370
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: [Feature Request] Block 3rd Party Scripts

Post by GµårÐïåñ »

Actually Thrawn's rule as presented is a more generalized single shot wildcard versus your rules which are far more time consuming to create for every exception. The first rule says every site make sure it comes from itself or deny it, but your says, make sure each site comes from itself by individually identifying them. one rule, verus MANY, and adding exceptions to that one rule would take much less time than create a full rule for ever site you come across.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0
Post Reply