From bc1cad4c0dd9664ff447880b59968ae182c7e97f Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 26 Feb 2016 18:37:05 -0500 Subject: [PATCH] Install Extension:SpamBlacklist The SpamBlacklist extension prevents edits that contain URLs whose domains match regular expression patterns defined in specified files or wiki pages and registration by users using specified email addresses. We also need an infra-root to manual download and install the extension. See below for instructions https://www.mediawiki.org/wiki/Extension:SpamBlacklist Change-Id: If752923483c5d7663ed33043f1b799cef2fface0 Signed-off-by: Paul Belanger --- templates/Settings.php.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/Settings.php.erb b/templates/Settings.php.erb index c3c1cc2..8450840 100644 --- a/templates/Settings.php.erb +++ b/templates/Settings.php.erb @@ -300,3 +300,10 @@ require_once( "$IP/extensions/CirrusSearch/CirrusSearch.php" ); $wgCirrusSearchServers = array( '127.0.0.1' ); $wgCirrusSearchShardCount = array( 'content' => 5, 'general' => 5 ); $wgSearchType = 'CirrusSearch'; + +# Extension:SpamBlacklist +require_once "$IP/extensions/SpamBlacklist/SpamBlacklist.php"; +$wgSpamBlacklistFiles = array( + "https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1", + "https://en.wikipedia.org/w/index.php?title=MediaWiki:Spam-blacklist&action=raw&sb_ver=1" +);