Mediawiki: increase autoblock period + spam filter regex
[chef.git] / 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;
 
 #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;
 #Autopromote users to autoconfirmed
 $wgAutoConfirmAge = 345600; // 4 days
 $wgAutoConfirmCount = 10;