« 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.

Posted by Al-Muhajabah, a fully-veiled geek, on April 11, 2003 01:34 PM, in Plugins | Permalink

Related

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.

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

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            

Search


Tips by Type

  • Hacks (4)
  • MT 3 (12)
  • Plugins (56)
  • Reviews (9)
  • Scripts (18)
  • Standard MT Tags (17)

Tips by Area

  • add-ons (2)
  • backend (8)
  • comments (17)
  • design (1)
  • display (51)
  • miscellaneous (1)
  • rebuilds (2)
  • search (4)
  • structure (2)
  • templates (14)
  • trackbacks (5)

Recent Posts

  • fast searches with PHP
  • easier management of blogrolls and media
  • Styles galore
  • easier tagging
  • clean up troublesome characters from copy-n-paste
  • using the right fields for the job
  • smilies for your entries
  • RDF versions of your blog entries
  • RSS feeds for tags
  • allow people to import lists of links from your blog

Archives

  • January 2007
  • July 2006
  • June 2006
  • March 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • August 2005
  • July 2005
  • June 2005
  • April 2005
  • March 2005
  • February 2005
  • January 2005
  • October 2004
  • March 2004
  • February 2004
  • October 2003
  • September 2003
  • August 2003
  • July 2003
  • June 2003
  • May 2003
  • April 2003
  • March 2003

Subscribe

Be notified by email of new entries:

Other ways to read this blog

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

Text-only version

Some Rights Reserved

spacer
This weblog is licensed under a Creative Commons License unless otherwise noted.
Powered by
Movable Type 3.2
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.