ldilley / rubircd

:speech_balloon: An IRC server written in Ruby
http://www.dilley.me/rubircd
GNU General Public License v3.0
22 stars 4 forks source link

Add flood detection #10

Open ldilley opened 9 years ago

ldilley commented 9 years ago

If a client is sending too much data in a short amount of time, disconnect them. This can be done by way of the following:

a) a timer and input counter or b.) if x messages are received (tracked by an input counter), compare a timestamp from 10 messages ago with the current timestamp. This timestamp information can be held in an array for each user. If the difference is too small, disconnect the user.

Or leave it to bots/channel operators, IRC operators, and IRC administrators to remove the offender. This feature may be too resource intensive for a heavily populated server.