One of my clients has had recent trouble with a Troll on their blog. I got them set up with the flexible and useful WP-Ban and sent them some instructions. It occurs to me that others might find this useful as well. Here is my Spam and Trolls post:
The true objective of this email is talk about how to use the banning tools available. This blog has been incredibly fortunate to have a wealth of excellent commentary and community. However, there are some aspects of comments that are no good for anyone: Spam and Trolls.
Spam
It’s important to note that spam is different from trolls. Spam is usually automatically generated, computer distributed and like unceasing tide of crap the washes across the internet in all venues. There is no single human behind the wash of spam out there. It’s like fighting zombies. Fighting spam is definitely an arms race style of endeavor. Your blog makes use of two primary tools for dealing with spam: Akismet and Bad Behavior. Both of these, like the spam they fight, are automated. Think of Akismet and Bad Behavior as good zombies.
So long as the (unwanted) viagra and (unwanted) sex toy ads aren’t showing up all over the blog, your good zombies are doing the best they can. If you notice a rise in these unwanted comments, let me know and I’ll see if we can tweak the settings a little more. Some of the more broad-brush approach to comment spam may eliminate comments that from real people having civil dialogue (aka a false-positive). A little viagra ad now and then is worth keeping a sincere person from feeling left out.
Trolls
Near as I can tell, most commentors are sincere and well-meaning. But from time to time, someone gets a wild hair across their ass and decides to cause trouble. Trolls are different from spam because, unlike spam, Trolls are people. Some human being is actually using the few hours they have on this earth with the intent of distressing the readers of your blog. Putting your good zombies (Akismet and Bad Behavior) to work against Trolls will result in a lot of collateral damage (false positives). So you end up playing a little bit of whack-a-mole.
Your primary mallet in this digital version of whack-a-mole is called WP-Ban. Here’s how to use it:
- Look at the navigation options running down the left-hand side of the screen.
- At the bottom, notice the link titled “Settings.” There’s a little arrow to the right of the word “Settings.” Please click that arrow.
- More options will unfurl. One of them, towards the bottom, will be called “Ban.” Click it please.
- You are now editing who gets to see the site and who doesn’t. You don’t want trolls to see the site.
- The section to use is called “Banned IPs” Here you can enter, one-at-a-time, the IP addresses of trolls. But even better, you can use a “wildcard” character to represent all options for some of the numbers. I recommend that when you spot a troll, you take the first three numbers and use a wildcard for the fourth. This will lessen the chance of eliminating all commentary from an entire town in order to get rid of the one troll (AKA the “burn the village to save it” approach). If this becomes a chore or too much to manage, then use the first two numbers and then wildcard it. You will see examples on the page.
- Scroll down and save your changes.
Some additional notes:
There’s an option to ban by referrer. This is useful if, say, some wackjob uses his or her blog to funnel a lot of incensed people at your site and run amok. Sort of like a Troll invasion. Use the ban-by-referrer section to ban anyone coming to the site by way of that article. This is a little heavy handed but may be required from time to time.
Banned Message is what the banned people see. I have put a little note in there for now that reads “Sorry, we prefer a little more civility on this site. Usually the advice of “Don’t feed the trolls” works well enough. In your case, however, it didn’t.” If you want to, please feel free to change that message.
Ban Stats will tell you how often the ban has been applied. If you find yourself obsessively checking the Ban Stats, remember that the Troll is controlling your time every time you bother looking at the stats. As of this writing, the ban stat reads “1.” So yes, your troll has been put on notice.