naxsi icon indicating copy to clipboard operation
naxsi copied to clipboard

Checking the coincidence of several "checkrule".

Open vel21ripn opened this issue 7 years ago • 2 comments

Syntax:

   CheckRule "condition" AND;

Example:

   CheckRule "$VAR1 > 0" AND;
   CheckRule "$VAR2 > 0" AND;
   CheckRule "$VAR3 > 0" BLOCK;

The request will be blocked only if all three conditions are met at the same time.

The debug output is slightly changed.

vel21ripn avatar Apr 03 '17 19:04 vel21ripn

Looks like a great feature, can you provide some unit tests so I can review and play around ?

Thanks :+1:

buixor avatar Apr 06 '17 09:04 buixor

Checking several conditions does not give you any new features, but allows you to write more readable rules.

vel21ripn avatar Apr 11 '17 20:04 vel21ripn