I am looking for ideas on making my Nettalk servers a bit more defensive.
I'd like to monitor requests, such that i can detect when too many requests from the same IP within a certain timeperiod occurs.
In my testing I can create scenarios where my browsers will loop forever making the same requests, (usually because i have restarted the server) or other programming issues like the SQL timeout issues where the connection may be set to retry forever. I am also thinking of detecting primitive hacking, denial of service type attacks.
So i can detect accidental and intentional resource waste.
I'd like to put some kind of govenor on the same request being repeated within a certain timeframe from any IP.
Then I'd like to either terminate the connection or Block the connection, send it a special page, perhaps even make the client pay a penalty with a timeout/blacklist if i believe its a black hat ...
make sense?, any ideas.
Currently because I use the logging template, i could put something in based on the addlog method, to detect, but am wondering is there a better way?