« list the number of links and images in a blog entry | Main | help visitors from search engines find what they're looking for »
As long as you allow comments on your blog, you'll eventually run into troublemakers (often called "trolls") who persistently post offensive or abusive comments to your blog. MT has a built-in IP banning function, but you may want to try something a little less extreme first.
One idea, courtesy of Teresa Nielsen-Hayden, is to strip the vowels out of the troll's comments. There are a couple of ways to do this. The simplest is the Disemvowelment plugin, which will strip the vowels out of comments posted by a certain IP address.
But going by IP isn't always the most effective way of stopping a troll. Most ISPs dynamically assign IP addresses each time a user logs on. The same person rarely has the same IP address twice.
A workaround that I came up with makes use of the Compare plugin and the Regex plugin. The Compare plugin checks to see if a comment author's name matches the name of a known troll or not. The Regex plugin then strips out the vowels if the name is a match.
Here's the code I'm using:
<MTIfEqual a="[MTCommentAuthor]" b="trollname">
<$MTCommentBody regex="s/[AEIOUaeiou]//g"$>
</MTIfEqual>
<MTIfNotEqual a="[MTCommentAuthor]" b="trollname">
<$MTCommentBody$>
</MTIfNotEqual>
The first part checks to see if the comment author's name is a troll (represented here by "trollname"; insert the name that your troll uses). If so, it searches for any upper or lowercase vowels and replaces them with nothing. If the name doesn't match, the comment is displayed as is.
Posted by Al-Muhajabah, a fully-veiled geek, on April 11, 2003 01:34 PM, in Plugins | Permalink
This tip is built on the following tip(s):
The following tip(s) expand on this tip:
This entry is about comments. The ten most recent entries also about this topic are:
new way to open and close comments and trackbacks on many entries
another anti-spam technique
close comments and pings, or open them again
more on crapflooding
adventures in Bayesian filtering
dealing with crapflooding, part two
comment subscription
dealing with crapflooding
killing comment spam, part 3
killing comment spam, part 2
View all entries about comments.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Comments
Thank you. It pleases me no end that others find disemvowelling useful and effective.
Posted by: Teresa Nielsen Hayden | May 26, 2003 05:21 PM
It's the most effective of any of the methods that I've tried. Although I do have one persistent individual who's been disemvoweled twice, most of the others give up and go away when they find that no one can read their rantings.
Posted by: Al-Munaqabah | May 27, 2003 04:06 PM
does this work for UBB message boards as well?
Posted by: webjockey | June 15, 2003 09:45 AM
I don't know how you would do the coding on a UBB forum, but presumably the same principle would apply. You might want to look around for information on UBB forums.
Posted by: Al-Munaqabah | June 15, 2003 05:36 PM