Nick Gearls | 4 Jul 17:03

Re: Disabling rules for one argument

Obviously, I was not specific enough.

I want to create a rule for all arguments at the global level, then, 
inside a sub-location, disable it for one specific argument.
Ex:
	SecRule ARGS "bad pattern" "id:10000,..."
	...
	<Location ...>
	 SecRule ARGS:name \
	   "phase:2,t:none,allow,nolog,ctl:ruleRemoveById=10000"
	</Location>

Nick

Ryan Barnett wrote:
> Perhaps I am not understanding your issue, but you can simply add an inverted variable (with the specific
argument name) to the variable list to exclude it -
> 
> SecRule ARGS|!ARGS:name "bad pattern" ...
> 
> Thanks,
> Ryan C. Barnett 
> 
> ----- Original Message -----
> From: mod-security-users-bounces <at> lists.sourceforge.net <mod-security-users-bounces <at> lists.sourceforge.net>
> To: mod-security-users <at> lists.sourceforge.net <mod-security-users <at> lists.sourceforge.net>
> Sent: Fri Jul 04 04:50:36 2008
> Subject: [mod-security-users] Disabling rules for one argument
> 
> Hello,
> 
> I have a rule like
>     SecRule ARGS "bad pattern" "id:10000,..."
> and I'd like to disable it for one specific argument
> 
> I tried
>     SecRule ARGS:name  "phase:2,t:none,allow,nolog,ctl:ruleRemoveById=10000"
> 
> but it doesn't work
> 
> Any idea ?
> 
> Thanks,
> 
> Nick
> 
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> mod-security-users mailing list
> mod-security-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mod-security-users

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08

Gmane