MongooseIM icon indicating copy to clipboard operation
MongooseIM copied to clipboard

Spam control

Open bartekgorny opened this issue 8 years ago • 5 comments

This PR adds a spam control feature.

There are minor changes to ejabberd_c2s, which provide a way to write and attach a custom spam control plugin, which would process all messages and react if necessary. Includes a simple throughput-based plugin.

bartekgorny avatar Dec 14 '16 13:12 bartekgorny

s/spam/spim/ ?

Nyco avatar Dec 15 '16 12:12 Nyco

s/spam/overuse/ ? s/spam/load/ ?

michalwski avatar Dec 15 '16 12:12 michalwski

As the name of the sample module, load or overload would be fine. But names of the hooks should be more generic - you can implement any type of spam protection, content-based, blacklisting senders, whatever, or even do useful stuff not related to spam at all.

bartekgorny avatar Dec 15 '16 13:12 bartekgorny

"abuse" is even more generic than "spam". :)

fenek avatar Dec 15 '16 20:12 fenek

On the other hand, one could use the same mechanism for rewarding users for clever things they say (if somebody invents an algorithm to tell clever things from stupid)

bartekgorny avatar Dec 19 '16 11:12 bartekgorny