MediaWiki security > MediaWiki spam protection >
See also:
- https://www.mediawiki.org/wiki/Extension:SpamBlacklist [ 1 ] was https://meta.wikimedia.org/w/index.php?title=SpamBlacklist_extension&oldid=590385 or meta.wikimedia.org/wiki/SpamBlacklist_extension
-
https://web.archive.org/web/20190304080118/http://blacklist.chongqed.org/
This extension blocks the saving of pages based on the links found in the page. While it works fairly well, it was definitely incomplete the last time I took a look at it.
It'll obliterate your users edits, if their browser doesn't remember their edits when they go back in their browser.
If you're the admin, and your edit got obliterated, then:
- pause at the "Spam protection filter" page
- edit your LocalSettings.php and comment-out the extension
- refresh the page to re-submit your data
- re-enable the extension
-
edit the page again to remove the link
I've had the extension triggered when I can find no mention of the URL in my blacklist files!
Brion's maintenance/cleanup.php is interesting.
LocalSettings.php entry:
require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" ); # # Only the wikimedia blacklist works. I have no idea why chongqed won't do anything.. $wgSpamBlacklistFiles = array( // "$IP/extensions/SpamBlacklist/blacklist-local", // Our blacklist "$IP/extensions/SpamBlacklist/blacklist-wikimedia", // Wikimedia's list // "$IP/extensions/SpamBlacklist/blacklist-chongqed", // chongqed's list // database title // "DB: tlugwiki My_spam_blacklist", // http://example.com/index.php?title=My_spam_blacklist&action=$ );
A simple Bash script to update things for you:
#!/bin/bash # update_blacklist # Updates the spam blacklists used by the SpamBlacklist extension for MediaWiki # meta.wikimedia.org/wiki/SpamBlacklist_extension cd /opt/xampp/htdocs/extensions/SpamBlacklist dir=${0%update_blacklists} echo " * updating from wikimedia.org's blacklist" wget -O $dir/blacklist-wikimedia 'http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw' echo " * updating from chongqed.org's blacklist" wget -O $dir/blacklist-chongqed.raw 'http://blacklist.chongqed.org' cut -d? -f3 $dir/blacklist-chongqed.raw > blacklist-chongqed rm $dir/blacklist-chongqed.raw
You may wish to have this script periodically called via a cronjob or at
.
2006-07-06 ∞
- I revisited the MediaWiki SpamBlacklist extension and have it working with some defaults. I still can't make it work properly. I helped update the meta-wiki documentation, but a lot of other people are having issues it seems.
Footnotes
Last updated 2021-02-17 at 19:13:01
ported