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.
|