I would like to have a feedback process from the actions in my app to mod_qos. But currently I seem to be only able to block or limit a user [1], but not just to increase the LimitCount for a given event or the BlockCount.
And thanks a lot for this module, it saved me today. I wish I had started using it earlier.
It would also be nice for situations, where you have distributed backends. Lets say, a visitor posts a comment, you can always report this action to a single server, thus detecting comment spam faster.
I already tried modifying the source in qos_handler_console, just was not sure which value limit_time should be or if I am doing it right.
Hello,
I would like to have a feedback process from the actions in my app to mod_qos. But currently I seem to be only able to block or limit a user [1], but not just to increase the LimitCount for a given event or the BlockCount.
And thanks a lot for this module, it saved me today. I wish I had started using it earlier.
[1] http://opensource.adnovum.ch/mod_qos/index.html#webconsole
So, instead of a "limit" or "unlimit" action, you would like to set the counter to a particular value, right?
like
http://your.server.name/qos/console?address=194.31.217.21&action=setlimit&event=QS_Limit&value=1234
Either this, and/or just a simple http://your.server.name/qos/console?address=194.31.217.21&action=inclimit&event=QS_Limit to increase by 1. Actually I would prefer a simple increase, as it avoids race conditions. (like in Memcache, APC, Xcache etc.)
It would also be nice for situations, where you have distributed backends. Lets say, a visitor posts a comment, you can always report this action to a single server, thus detecting comment spam faster.
I already tried modifying the source in qos_handler_console, just was not sure which value limit_time should be or if I am doing it right.
I've committed the change (it will be part of mod_qos 11.8)
http://mod-qos.cvs.sourceforge.net/viewvc/mod-qos/src/httpd_src/modules/qos/mod_qos.c?r1=5.522&r2=5.523
Thank you for sharing your thoughts and ideas.