From b3054cb3d8f3cfae3b1c045e7715e6c127386459 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 29 Dec 2015 08:36:47 +0000 Subject: [PATCH] Mediawiki: increase autoblock period + spam filter regex --- cookbooks/mediawiki/templates/default/LocalSettings.php.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index ce4f07229..0895fb052 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -211,6 +211,12 @@ $wgDnsBlacklistUrls = array( 'proxies.dnsbl.sorbs.net.', 'opm.tornevall.org.', ' #Require validated email to edit $wgEmailConfirmToEdit = true; +# Extend autoblock period +$wgAutoblockExpiry = 7776000; // 90 days + +# Spam filter regex +$wgSpamRegex = '/\b(epson|brother|canon|hp|kodak|lexmark|mcafee|norton|avira|kaspersky|avg|avast|microsoft|outlook|printer)( helpline|( customer| technical| tech)?| customer service)? (support number|phone number)\b/i'; + #Autopromote users to autoconfirmed $wgAutoConfirmAge = 345600; // 4 days $wgAutoConfirmCount = 10; -- 2.39.5