17 Aug 14:34
Re: Performance tip
From: Ivan Ristic <ivan.ristic <at> gmail.com>
Subject: Re: Performance tip
Newsgroups: gmane.comp.apache.mod-security.user
Date: 2006-08-17 12:34:56 GMT
Subject: Re: Performance tip
Newsgroups: gmane.comp.apache.mod-security.user
Date: 2006-08-17 12:34:56 GMT
On 8/17/06, Alex V. <alex-security <at> ssji.net> wrote: > I'm absolutely not a regexp expert, but I'm wondering if it could not be > possible to write the regexp like this (or something similar): > > SecFilterSelective VAR ( > KEYWORD1| # Comment explaining this match > KEYWORD2| # Comment explaining this match > KEYWORD3| # Comment explaining this match > KEYWORD4| # Comment explaining this match > KEYWORD5| # Comment explaining this match > KEYWORD6 # Comment explaining this match > ) It is not possible to use comments, but it is possible to break the regular expressions into multiple lines. like this. SecFilterSelective VAR "(\ KEYWORD1|\ KEYWORD2|\ KEYWORD3)" It is important to not have any whitespace at the beginning of the line or before the continuation character "\". -- -- Ivan Ristic, Technical Director Thinking Stone, http://www.thinkingstone.com ModSecurity: Open source Web Application Firewall ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
RSS Feed