« list the number of links and images in a blog entry | Main | help visitors from search engines find what they're looking for »

dealing with trolls

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.

Comments

Thank you. It pleases me no end that others find disemvowelling useful and effective.

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.

does this work for UBB message boards as well?

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.

About This Blog

  • Disclaimer: This is a personal site and is not connected with Six Apart, Ltd, the makers of Movable Type
  • Contact me:
  • Readme: What this blog is and is not
  • Reference: Templates for Al-Muhajabah's Islamic Blogs

August 2008

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            

Tips by Type

Tips by Area

Other ways to read this blog

Feed Subscribe to this blog's feed
(default is RSS 2.0, I also have RSS 1.0 and Atom)

Text-only version
Powered by
Movable Type 3.2