Page MenuHomePhabricator

SpamBlacklist should have default "local" blacklist file
Closed, DeclinedPublic

Description

Author: klee

Description:
Currently, SpamBlacklist loads only wikimedia_blacklist by default. I would like the default
configuration to also search for, and load, a file called local_blacklist if it is present. This would
make it easier to use the default load_lists script to grab the updates from the canonical wikimedia
blacklist, while retaining your own local blacklist.

It's easy enough for admins to add a line to the PHP templates that loads local_blacklists, but it's a
hassle to do that every time you upgrade the Wikimedia software. Ideally local settings should be
encapsulated in separate files that are easy to carry forward through Wikimedia upgrades.

It may also be desirable to load extra regexps from a variable that's settable in LocalSettings.php, so
that the configuration for the whole installation is encapsulated there.


Version: unspecified
Severity: enhancement
OS: Linux

Details

Reference
bz2345

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:32 PM
bzimport set Reference to bz2345.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

In LocalSettings.php, under the require_once( ...spam blacklist... ); line, add
something like:

$wgSpamBlacklistFiles[] =
'http://your.wiki.com/path/to/index.php?title=Some_page&action=raw';

You *can* set the configuration within LocalSettings.php but it has to be done
after the defaults for that extension are loaded.