Page MenuHomePhabricator

Automatically block users who hit some spam blacklist entries
Open, Needs TriagePublic

Description

Some LTAs tend to add specific links to pages. They may be handled by spam blacklist. It may be useful if they are automatically blocked (the duration may be configured) when they hit some spam blacklist entries.

Event Timeline

MarcoAurelio added subscribers: Daimona, MarcoAurelio.

Agreed. If not doable via SpamBlacklist itself, maybe we can hook with AbuseFilter here. If user/ip triggers (this domain|this set of domains|the whole list) then block? Ping @Daimona

It won't be easy to tell if a user hit the SB from AF, because both use the EditFilterMergedContent hook, and thus we'd have to rely on the execution order, which is bad.

Something like this was proposed in T211680 for WMF wikis, but IMHO that's not something we can always assume to be true. What I proposed there is instead to add a variable to AF with the content of the spam blacklist, but we'd have new problems, as I wrote in the last paragraph of T211680#4846985. Plus, we need to ensure it won't cause performance issues per first paragraph of same comment.

There is an false positive here. When the about.com domain was added to the Global Spam list, it was said that old versions of the domain where fine. (https://meta.wikimedia.org/wiki/Talk:Spam_blacklist/Archives/2023-04#about.com ) So, if an user archives an already present about.com link, they would be, under this bug, blocked from editing. That is problematic.