Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent spamming #4

Open
pietertolsma opened this issue Jul 21, 2016 · 0 comments
Open

Prevent spamming #4

pietertolsma opened this issue Jul 21, 2016 · 0 comments

Comments

@pietertolsma
Copy link
Owner

Currently users can send around 5 messages per second and quickly disconnect and reconnect. This is a very vulnerable spot to hackers/spammers.

This issue is closely related to issue #1 and I believe that fixing this will also fix this issue. You need to find a way to set a cooldown on users, for example by setting a timestamp in the chatbacklog and checking when the last time was a user sent a message every time a user wants to send a new message. Also, there should be a client-side cooldown to prevent server overload (savvy hackers can of course overcome this, but we don't want to make it easy for them).

Setting a cooldown on reconnections is important as well. One way to do this is to track the IP's of clients and basically doing the same as with the chat messages.

@pietertolsma pietertolsma changed the title Users can spam Prevent user-spam Jul 21, 2016
@pietertolsma pietertolsma changed the title Prevent user-spam Prevent spamming Jul 21, 2016
@pietertolsma pietertolsma added this to the Version 0.0.2 milestone Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant