We need something to prevent command flooding.
Both to prevent chat spamming, but also to make DoS type of attacks a bit more difficult.
No problem yet, but eventually it will be.
My idea:
Flood detection rules
- Each player has a spamScore
- Every command (say, look, create char, go, etc.) adds a fixed number to the spamScore
- Each command may add a different score. pose = 10, createChar = 50, etc.
- If the spamScore would become > 100 (configurable), the command is denied. No score is added.
- spamScore is decreased with 1 every second.
- spamScore is never less than 0
This would allow bursts of commands. But if pose
adds 10, the initial burst would allow 10 poses. After that, you can only pose every 10 seconds.
Any comments?
/Accipiter