Page 1 of 1

More than 1 Action possible?

Posted: Wed Sep 17, 2014 9:56 am
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. :)

Re: More than 1 Action possible?

Posted: Wed Sep 17, 2014 10:21 am
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]

Re: More than 1 Action possible?

Posted: Thu Sep 18, 2014 4:19 pm
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.