More than 1 Action possible?

Discussions about the Application Boundaries Enforcer (ABE) module
ReporterX
Senior Member
Posts: 74
Joined: Mon Sep 15, 2014 11:46 pm

More than 1 Action possible?

Post by ReporterX »

Newbie ABE learner

Can I put more than 1 action in the same line? For example:

Code: Select all

Site .trackingsite.com
Sandbox Anonymize from SELF++
Sandbox Anonymize INCLUSION from .newssite.com
Deny
It is also hard to know if the rule is working.
How could I test to do if the sandboxing or anonymizing is really working?
I know how to open Browser Console, but the message does not tell me whether the particular rule is working as intended.
Thanks a lot. :)
Firefox 37.0.2, NoScript 2.6.9.22
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: More than 1 Action possible?

Post by Giorgio Maone »

ReporterX wrote:Newbie ABE learner

Can I put more than 1 action in the same line? For example:

Code: Select all

Site .trackingsite.com
Sandbox Anonymize from SELF++
Sandbox Anonymize INCLUSION from .newssite.com
Deny
Nope, and you cannot stack them either because the first matching exits the whole rule AND ruleset processing.
However, next ruleset gets processed normally, so a work around is opening about:config and creating a new string preference called "noscript.ABE.rulesets.USER2", then opening NoScript Options|Advanced|ABE and refactoring the rule above in two rules placed in distinct rulesets, like

USER:

Code: Select all

Site .trackingsite.com
Sandbox from SELF++
Sandbox INCLUSION from .newssite.com
Deny
USER2

Code: Select all

Site .trackingsite.com
Anonymize from SELF++
Anonymize INCLUSION from .newssite.com
Deny
ReporterX wrote: It is also hard to know if the rule is working.
Browser Console (Ctrl+Shift+J) - filtering by [ABE]
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
ReporterX
Senior Member
Posts: 74
Joined: Mon Sep 15, 2014 11:46 pm

Re: More than 1 Action possible?

Post by ReporterX »

Giorgio Maone wrote:Nope, and you cannot stack them either because the first matching exits the whole rule AND ruleset processing.
However, next ruleset gets processed normally, so a work around is opening about:config and creating a new string preference called "noscript.ABE.rulesets.USER2", then opening NoScript Options|Advanced|ABE and refactoring the rule above in two rules placed in distinct rulesets
I see. So Sandbox and Anonymize can't be applied to the same site even putting one action per line.
But I use two "Accept" rules on the same site but it seems both are working fine.
Giorgio Maone wrote:
ReporterX wrote: It is also hard to know if the rule is working.
Browser Console (Ctrl+Shift+J) - filtering by [ABE]
Yes I know, but the problem is they seem to work fine in the Console.
But as you said, Sandbox and Anonymize can't be applied to the same site in the same ruleset, so they are actually not working properly, even though messages keep coming in the Console. But well, I'm not good enough to understand what those messages mean and there are many.

As to Accept/Deny, I can easily test it to see if they are actually working by visual indications.
For example,

Code: Select all

Site .site1.com
Accept INCLUSION from .site1.com
Deny
I can change it into "Accept InCLUSION(IMAGE) from .site1.com"
In this case only images will be loaded, essentially breaking the site.

But it is hard to know if it is Sandbox or Anonymize.
I can see the effects visually on the site.
Firefox 37.0.2, NoScript 2.6.9.22
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Post Reply