Page MenuHomePhabricator

Unable to remove link blocked by global spam blacklist
Open, Needs TriagePublic

Description

linktr.ee is a link blocked by global spam blacklist, but a user could add this link into the alias section of a wikidata entity.
Also, when I wanted to remove this link, I was blocked by spam blacklist (it returned "The text you wanted to publish was blocked by the spam filter..."). Eventually this link is removed after sysop add this link into local spam whitelist.

Event Timeline

Did a quick test on beta cluster, found something weird (not that relevant to this task though)

  1. Add \blinktr\.ee\b in global Spam_blacklist - everything looks great, I got trapped when adding link https://linktr.ee/JasonSeah
  2. Add another entry \blinktr\.tv\b to global Spam_blacklist, seems I did not get trapped anymore...

Is there something wrong with my operation?

Could this be because edit summaries are checked for spam, as mentioned in T15599#173812? Removed content can appear in edit summaries in the Wikidata user interface (and other scripts and tools) and there is usually no way to save with a different summary.

(if this is the reason, it should be possible to restore a revision from before the addition, if it was not there from the first revision)

matej_suchanek subscribed.

For reference, edit summaries are indeed conditionally checked for spam:

includes/Hooks.php
// HACK: treat the edit summary as a link if it contains anything
// that looks like it could be a URL or e-mail address.
if ( preg_match( '/\S(\.[^\s\d]{2,}|[\/@]\S)/', $summary ) ) {
	$links[] = $summary;
}

For Wikidata, this is unfortunate because when you remove a piece of data ("by hand"), it is usually included in the edit summary.
Paradoxically, when the domain is put on the blacklist meanwhile, the only one blocked by the filter is the cleaner, not the spammer.