kyprizel / testcookie-nginx-module

simple robot mitigation module using cookie based challenge/response technique. Not supported any more.
http://kyprizel.github.com/testcookie-nginx-module/
525 stars 140 forks source link

$testcookie_ok - Log Load #7

Closed MAXDARK closed 10 years ago

MAXDARK commented 11 years ago

Hello,

Is there a way for you make a variable that can be used inside vhost settings, to avoid logging to access_log, all the entries which have $testcookie_ok != 'yes' ?

It would help with log load, this way not recording the log entries generated by bots.

Thank You !

kyprizel commented 11 years ago

Not sure, may be nginx has such a filter.

MAXDARK commented 11 years ago

It doesn't, at least researching it, there is no easier way to do this other than on the module !

kyprizel commented 10 years ago

You can try "conditional logging" feature http://nginx.org/en/docs/http/ngx_http_log_module.html