Difference between revisions of "Sandbox"

From OpenCircuits
Jump to navigation Jump to search
(more words to block)
(→‎$wgSpamRegex: breaking new spam pattern)
Line 1: Line 1:
 
==$wgSpamRegex==
 
==$wgSpamRegex==
$wgSpamRegex = '/ringtones|viagra|porn|anal.sex|tylka|tykarl/';
+
$wgSpamRegex = '/(\[http[^\]]*\]\s*){6,}|ringtones|viagra|porn|anal.sex|xanax|tramadol|zocor|hydrocodone|levitra|diazepam|lortab|ultram|s-url.net|tylka|tykarl/';
  
Please block spam with these words:
+
First alternative blocks any sequence of urls that contains more than 5 links which are only seperated by whitespaces. That pattern wouldn't apply to the links section cause there is usually text between the links! Alternatively the number could be raised.
xanax tramadol zocor hydrocodone levitra diazepam lortab
 
"free porn"
 
ultram
 
 
 
Also links that begin with <code><nowiki>"http://s-url.net/"</nowiki></code>.
 
  
 
==Table something==
 
==Table something==

Revision as of 09:57, 12 August 2007

$wgSpamRegex

$wgSpamRegex = '/(\[http[^\]]*\]\s*){6,}|ringtones|viagra|porn|anal.sex|xanax|tramadol|zocor|hydrocodone|levitra|diazepam|lortab|ultram|s-url.net|tylka|tykarl/';

First alternative blocks any sequence of urls that contains more than 5 links which are only seperated by whitespaces. That pattern wouldn't apply to the links section cause there is usually text between the links! Alternatively the number could be raised.

Table something

(moved to Techniques)


(See also Meta:Sandbox)