Disallow Twitter.js except on Twitter.com

Discussions about the Application Boundaries Enforcer (ABE) module
Guest

Disallow Twitter.js except on Twitter.com

Post by Guest »

How do I Disallow Twitter.js except on Twitter.com?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:32.0) Gecko/20100101 Firefox/32.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Disallow Twitter.js except on Twitter.com

Post by barbaz »

I'm not sure whether you want to block a file named "Twitter.js" when not on twitter, which would be something like:

Code: Select all

Site ^.+/Twitter\.js(?:[\?,;&]|$)
Accept from .twitter.com
Deny INC
or block active content from twitter when not on twitter, which would be:

Code: Select all

Site .twitter.com
Accept from .twitter.com
Deny INC(SCRIPT, OBJ, FONT, XHR, MEDIA)
Sandbox INC
(you need to script-allow twitter.com for this to have any useful effect)
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20140618 Firefox/24.0 PaleMoon/24.6.2
Post Reply