Menu

Suggestion: Trigger Event via webconsole

Martin
2014-12-07
2014-12-15
  • Martin

    Martin - 2014-12-07

    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

     
  • Martin

    Martin - 2014-12-11

    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.

    } else if(strcasecmp(cmd, "liminc") == 0) {
            if(eventLimitConf) {
              (*e)->limit[limitTableIndex].limit++;
              if((*e)->limit[limitTableIndex].limit == 1) {
                (*e)->limit[limitTableIndex].limit_time = ???;
              }
          }
        }
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.