Last modified: 2006-06-25 02:24:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4345, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2345 - SpamBlacklist should have default "local" blacklist file
SpamBlacklist should have default "local" blacklist file
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All Linux
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-07 19:09 UTC by Keunwoo Lee
Modified: 2006-06-25 02:24 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Keunwoo Lee 2005-06-07 19:09:04 UTC
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.
Comment 1 Rob Church 2006-06-25 02:24:14 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links