]> git.openstreetmap.org Git - chef.git/commitdiff
Mediawiki: increase autoblock period + spam filter regex
authorGrant Slater <git@firefishy.com>
Tue, 29 Dec 2015 08:36:47 +0000 (08:36 +0000)
committerGrant Slater <git@firefishy.com>
Tue, 29 Dec 2015 08:36:47 +0000 (08:36 +0000)
cookbooks/mediawiki/templates/default/LocalSettings.php.erb

index ce4f07229db2086bf1d043583a9d9a2cec58bd60..0895fb052f22ac1ed1b200d650bed68da768e6ba 100644 (file)
@@ -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;