Way to block a specific script from an allowed host?

Discussions about the Application Boundaries Enforcer (ABE) module
tarjk
Junior Member
Posts: 40
Joined: Tue Apr 01, 2014 12:28 pm

Way to block a specific script from an allowed host?

Post by tarjk »

Here is the script in question:
http://a248.e.akamai.net/www.crutchfiel ... alytics.js

The Crutchfield site will not work unless a248.e.akamai.net is allowed. But allowing akamai white lists the GoogleAnalytics script. If NoScript can allow akamai but still block this specific GoogleAnalytics script, I assume NoScript's surrogate will run and prevent any problems?

Can ABE provide this functionality? I've played around inputting this script into ABE in various ways. But nothing I've tried has produced the desired outcome.
Last edited by barbaz on Wed Feb 25, 2015 8:49 pm, edited 1 time in total.
Reason: fix link
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Way to block a specific script from an allowed host?

Post by barbaz »

Does this work?

Code: Select all

Site ^https?://.*/GoogleAnalytics\.js
Deny
EDIT Oh, and no NoScript's GA surrogate won't run in place of that, unless you go to about:config and change the value of "noscript.surrogate.ga.sources" to

Code: Select all

*.google-analytics.com ^https?://.*/GoogleAnalytics\.js
*Always* check the changelogs BEFORE updating that important software!
-
tarjk
Junior Member
Posts: 40
Joined: Tue Apr 01, 2014 12:28 pm

Re: Way to block a specific script from an allowed host?

Post by tarjk »

barbaz wrote:Does this work?

Code: Select all

Site ^https?://.*/GoogleAnalytics\.js
Deny
EDIT Oh, and no NoScript's GA surrogate won't run in place of that, unless you go to about:config and change the value of "noscript.surrogate.ga.sources" to

Code: Select all

*.google-analytics.com ^https?://.*/GoogleAnalytics\.js
This did not work. But it was very helpful nonetheless. I am still trying to get the hang of regex. So I will continue to play with this and see if I can get it working.

Thanks!
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: Way to block a specific script from an allowed host?

Post by barbaz »

tarjk wrote:I am still trying to get the hang of regex.
This tutorial may help you.
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply