Fighting NON-regular expression spam

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

How about having a look at Manual:$wgSpamRegex?

 Hazard-SJ  ± 16:30, 2 April 2011

That's what he is using, Hazard-SJ.

What about adding "==<center>[http://" to your $wgSpamRegex? (I'll add this to $wgSpamRegex's documentation too; it's quite common.)

75.137.144.17719:34, 2 April 2011

I know that's what he is using, so I referred him to the page so he could read it.

 Hazard-SJ  ± 20:09, 2 April 2011

I read it, and I did add it to my line, but it doesn't seem to work. I assume that it wasn't picking up actual HTML commands, only regular text. Otherwise, I don't know why it would not work. I'll try it again. Let me be a little clearer.

Here is an example of one of the edits a typical spammer makes:

==<center>[http://mylinkdirs.com/forum/index.php?topic=mp7MjE3fHwxMzAxNjA0MTY1fHwxOTUyfHwoRU5HSU5FKSBNZWRpYVdpa2k%3D&s=Atkins_Diet_Side_Effects_Bumps <big>'''<u>Atkins Diet Side Effects Bumps</u>'''</big>]</center>==

I created the following line in my LocalSettings:

$wgSpamRegex = "==

[http://";

But it doesn't help. Should I be adding something else?

96.32.128.8400:29, 3 April 2011

try $wgSpamRegex = "/==<center>[http:\/\//";

75.137.144.17722:36, 5 April 2011
 
 

Not only is it not working, but it seems to have "broken" my

require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );

tag which I was using to confirm anyone who posted links.

96.32.128.8400:34, 3 April 2011

I realize that this won't address your root problem, but have you tried banning the IP or block of IP's that the spammer uses? Banaticus 02:48, 4 April 2011 (UTC)

Banaticus02:48, 4 April 2011

...or the range if it is a similar range of IPs and not one?

 Hazard-SJ  ± 00:27, 8 April 2011
 
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox