1 Dec 01:09
Re: Trigger modsec log/deny from web script - logging web spam flagged by b2evolution
Jason Edgecombe <jedgecombe <at> carolina.rr.com>
2005-12-01 00:09:21 GMT
2005-12-01 00:09:21 GMT
Ivan Ristic wrote: >Jason Edgecombe wrote: > > >>Hi there, >> >>Is there a way to have mod_security deny and log a request based on the >>action of a php/perl/cgi script? >> >>Specifically, I'm using b2evolution for weblogs and I want to have >>mod_security log the requests that b2evolution marks as spam. Currently, >>b2evolution returns a 403 when a comment/trackback is spam. I don't see >>a way to trigger mod_security based on response code. Would setting an >>environment variable from within a PHP script accomplish this? >> >> > > How about: > > SecAuditLogRelevantStatus ^403$ > > > Excellent! I'll implement that. Is there another way incase I don't want to use the http error code? For example, a http request contains a spam referrer, but I still want to serve the page to the client.(Continue reading)
RSS Feed