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

spam prevention #25

Closed
aaronpk opened this issue Apr 1, 2018 · 7 comments

Comments

@aaronpk
Copy link
Owner

commented Apr 1, 2018

We've had some instances of IRC spam that should be easy to detect and automatically kick the person out.

  • Any text posted with >50% all caps within 5 seconds of joining the channel (requires knowledge of when the person last joined the channel)
  • Text that is all caps except for usernames (requires knowledge of current room list)
@aaronpk

This comment has been minimized.

Copy link
Owner Author

commented Apr 14, 2018

Mentioning the same link repeatedly. Needs some thought about a good limit, since people testing link preview is legit. Maybe the limit is >5 times within a minute and you're kicked. Maybe don't do rate limiting if you're v since that means you're registered in the wiki.

@jjuran

This comment has been minimized.

Copy link

commented Apr 14, 2018

Loqi tracks everybody's karma, and could discriminate on that basis: Be lenient for regulars (having at least 1 karma) but strict on newcomers.

@sknebel

This comment has been minimized.

Copy link

commented Apr 14, 2018

weird characters are another potential heuristic, since at least the recent spamwaves used those. Made slightly more complicated by the fact that 50% or so of the spammers mess up the encoding...

@sknebel

This comment has been minimized.

Copy link

commented Apr 14, 2018

and of course a "!spammer" command would also be an option. It could only work on recently joined users (that haven't been seen before) to prevent abuse.

@aaronpk

This comment has been minimized.

Copy link
Owner Author

commented Apr 14, 2018

I like the idea of giving the community the ability to help with this. That also happens to be the easiest thing to implement. Loqi now has a new !kick command.

  • If you are +v (you're registered on irc-people), you can use the new !kick command
  • You can say !kick foobar to kick that person from the room, but only if they joined less than 5 minutes ago
@aaronpk

This comment has been minimized.

Copy link
Owner Author

commented Apr 14, 2018

Just implemented two more anti-spam techniques.

  • if you say more uppercase than lowercase characters other than the URL, and if you joined in the last 5 minutes, then you get kicked
  • if you say the same URL 5 times within a minute, you get kicked

These only apply to people who are not +v registered on irc-people

@aaronpk

This comment has been minimized.

Copy link
Owner Author

commented Jun 18, 2019

This has gone through many iterations and has been pretty good at kicking spammers. Also thankfully the main spam wave has stopped.

@aaronpk aaronpk closed this Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.