Re: [mod-security-users] secRuleRemoveById not working
Brought to you by:
victorhora,
zimmerletw
From: Ofer S. <OferS@Breach.com> - 2006-11-26 15:15:11
|
>From Dan: > Hi im trying to pass this rule through , to ignore url encoding for this=20 > script however it still gets caught in the audit log. It also seems all=20 > the default rules downloaded i have to change to auditlog instead of log=20 > to log to the modsec audit log rather than apache error log. > <LocationMatch "/path/script.php"> > SecRuleRemoveById 50107 > </LocationMatch>=20 Rule 50107 executes in phase 1. Apache Location and LocationMatch tag are not evaluated yet during this phase, so you cannot use it to bypass this rule. Currently your base choice is to move rule 50107 to phase 2. Actually I think that in future releases of the rule set I may delay most rules to phase 2 for that reason until we find a way to use Location in phase 1. As for logs: the rule set by default output events to both Apache error log and ModSecurity audit log. The ModSecurity console uses the audit log, which is also has more details, but different SIM solutions work out of the box with Apache error log. I would love to hear more input on that. ~ Ofer |