decidim-ice / decidim-module-decidim_awesome

Additional components and Opt-In usability and UX tweaks for Decidim.
GNU Affero General Public License v3.0
24 stars 24 forks source link

Add autoblock spam users feature #299

Open aramollis opened 5 months ago

aramollis commented 5 months ago

Is your feature request related to a problem? Please describe. Related to the known "fake/spam users" problem. Human/bots users create a profile, fill in the personal URL and bio, and then do nothing on the website, or sometimes post some content. See an initial proposal for more context.

Product implemented some improvements but the main problem (autoblock spam users) remain unresolved.

Describe the solution you'd like In order to prevent illicit content (spam messages) from being published on the platform, a mechanism will be implemented to auto-block users. When a user is blocked, their content becomes inaccessible (if they are unblocked, it is accessible again)

Rule criteria (admin can define how many conditions should being met to apply autoblock):

Whitelist rules:

Describe alternatives you've considered

Additional context Possible UI (WIP) rules

  1. Allow or disable user auto-blocking
  2. Allow defining the weight (in integers) of the rules
  3. Allow defining the threshold from which the autolock is applied (>=2 for example)
  4. Add links to be able to list users who meet these rules (optional)
  5. Define whitelist rules that would bypass autoblocking

Example whitelist settings (5) that could be activated or edited: Captura de Pantalla 2024-05-06 a les 12 43 10

furilo commented 5 months ago

Just to add more context: we are half-way developing this, either we include it here or in a standalone module, but we'd like it here best ;)

microstudi commented 5 months ago

Please make a PR, we'll discuss the implementation there, but we are open to it!

aramollis commented 5 months ago

The list to review autoblocked users I assume should be the regular one at /admin/moderated_users?blocked=true but with some kind of filter? I tested if you can filter by template of "justify msg" but it doesn't exist Captura de Pantalla 2024-05-08 a les 12 49 41

Captura de Pantalla 2024-05-08 a les 12 51 03

@entantoencuanto says the actual filter "Motivo denuncia" can't be overridden but ¿maybe we can add another filter condition like "Awesome autoblocked"?

The alternative is to add CSV of autoblocked users in the email & link to /admin/moderated_users?blocked=true without any filter and admin could manually check. In most cases will not represent a problem because there aren't a high activity blocking and you can identify by date those autoblocked (should all been blocked at the same time).

microstudi commented 5 months ago

I agree that we should mark the motive as "auto-blocked" and the user should be able to reclaim a false positive don't you think?

Btw, I would change whitelist/blacklist for safelist/blocklist