-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
Rough idea:
On connect of a new client ws :
bytesent[ws] = 0
We should do this each time a message is posted by a user ws :
bytesent[ws] += len(message)
Then we should measure if the increase is more than, say, 1kB per minute. If so deconnect, and store the IP of the potential spammer.
If user comes back and second flood, add to IP ban list...
Something else: how to get IP from ws here with websocket: https://github.com/josephernest/talktalktalk/blob/master/talktalktalk.py#L75 ?
Reactions are currently unavailable