Extension:SpamBlacklist/update script
Jump to navigation
Jump to search
I hereby release this script into the public domain. -- Sy / (talk) 23:41, 16 July 2006 (UTC)
#!/bin/bash dir="$( cd "$( dirname "$0" )" && pwd )" echo " * updating from wikimedia.org's blacklist" wget -O $dir/blacklist-wikimedia 'http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw'
If you are using memcached, you will also have to delete the spam_blacklist_regexes
key. The following can be added to the above script:
echo " * removing memcached key" php <mediawiki_path>/maintenance/mcc.php <<EOF delete spam_blacklist_regexes EOF
<mediawiki_path> should be replaced with the path to your mediawiki installation.