1 Aug 2008 01:56
Re: Simple Rule Question
Ryan Barnett <Ryan.Barnett <at> Breach.com>
2008-07-31 23:56:04 GMT
2008-07-31 23:56:04 GMT
Are those your exact rule examples or did you omit some action data? The reason I ask is the the default SecDefualtActions setting in 2.5 is to log,pass and not to deny. So, unless you specify deny on your example chained rule starter line, it will only log. 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: Thu Jul 31 15:30:35 2008 Subject: [mod-security-users] Simple Rule Question Hello, I have a seemingly simple question but I can't make it work. Virtual server www.example.com has several images in a folder called /images. The images are used in auctions and so the Referer should always contain ebay or [otherauctionsite.tld] and if it doesn't, then the request should be denied with a 40x-level code. With mod_sec version 1.x I was able to do this but I've since upgraded to 2.5 and I can't get the rules to work right. SecRule SERVER_NAME " <at> rx example.com" "chain" SecRule REQUEST_URI "images" "chain" SecRule REQUEST_HEADERS:Referer "! <at> contains ebay" # Now do something to deny it(Continue reading)
RSS Feed