Re: [mod-security-users] length of an arguments
Brought to you by:
victorhora,
zimmerletw
|
From: Ivan R. <iv...@we...> - 2006-01-11 14:32:17
|
Diego Pellegrino wrote:
> Hi.
> I'm running mod_security version 1.9 under Fedora Core 3, and i need
> to know
> how can I get the length of the arguments and check them against any
> condition.
>
> For example: argument zip
>
> SecFilterSelective ARGS_zip < 8 deny
Try this for less than 8 digits:
SecFilterSelective ARG_zip !^[0-9]{8,}$
For more information see: http://www.pcre.org/pcre.txt
--
Ivan Ristic, Technical Director
Thinking Stone, http://www.thinkingstone.com
Tel: +44 20 8141 2161, Fax: +44 87 0762 3934
|