Spammer Tar Pit

My spammer came back for another visit, so I decided to have a bit of fun. Here is my second WordPress plugin: TarPit (txt, phps).

What it does

If you have any IP numbers listed in your moderation_keys setting (that’s where you put the spam words in the Comment Moderation setting under Discussion Options), this plugin will check them against the current visitor’s IP number. If it matches, the visitor will get a delay (that’s the tar pit — it slows them down), then an “Access Denied” message. You can customize the delay time and the message of course. Advanced users can also add additional IP matches manually, should they so desire. You might want to do that in order to match against an entire IP block, for instance.

If you’re looking for a more humorous spammer deterrent, try Kitten’s Comment Pay. The main difference here is that with “Comment Pay”, the spammer still gets to post a comment. With TarPit, the spammer cannot access any page controlled by WordPress. At all.

Update: I meant to mention this before, but this works great in conjunction with Kitten’s Spam Words Plugin. Anytime you “Delete comment as spam”, the offender’s IP number will automatically be added to your moderation_keys.


Update 2, Aug 27, 2004: Bumped to version 1.1 and added a check for the case where you don’t yet have any IP numbers in your list.


Update 3, Sep 9, 2004: Bumped to version 1.2. Added option to email you when the trap is triggered (enabled by default).


Update 4, Oct 26, 2004: Bumped to version 1.3. Spammers will now get an HTTP 403 “Forbidden” status code, and the output is set to “text/plain”.

Stumble It!
Spammer Tar Pit

Related posts:

  1. Spammers are stupid
    " For the past three hours, a spammer has been attacking this site, attempting to post comment spam. Of course, none of the over 600..."
  2. Greetings, spammers!
    " Early this morning, a spammer flooded this site with around 20+ comment spams. Thanks to MooKitty’s Spam Words Plugin, I was able to delete..."
  3. Plugin: SpamForceField
    " SpamForceField is my newest anti-spam plugin for WordPress. This one does a couple of interesting things: All connections via pinappleproxy are denied. Every connection’s..."
  4. TarPit update
    " I’ve had a minor modification to my Spammer TarPit plugin in place here for a couple of weeks, but I’m just now getting around..."
  5. Spammers should all DIE DIE DIE
    " I am so sick of the damn spammers. Spammers are teh sux0r. Spammers are a festering boil on the ass of the Internets. I..."
This entry was posted in Plugins, WordPress and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

29 Comments

58 Trackbacks

  1. [...] I know this is bad netizen-y behavior, but I just blocked several IP addresses from posting on this site. I’ve been getting hit with 30-50 spams every time I post, and since I’m working off of an anonymous wireless connection coming from somewhere in my parents’ neighborhood, I don’t have time for social niceties. I’m thinking about installing Spammer Tar Pit or some other anti-comment spam plug-in, but it will have to wait until I don’t have to depend on my computer being in juuuust the right position in order to be connected. [...]

  2. By Interesting News Posts on March 9, 2006 at 9:24 pm

    [...] [...]

  3. By Tar for Windows - Tar Links on April 28, 2006 at 6:05 am

    [...] geek ramblings » Spammer Tar Pit Dougal came up with the wonderful Spammer Tar Pit plugin to temporarily stop … 除了以上兩個 plugin,還在Geek Ramblings這個 blog 找到個叫spammer-tar-pit的 … [...]

  4. By Not an artist on June 14, 2006 at 5:36 am

    Spammers Tarpit…

    Spammers tarpit has been posted. It’s a plugin that’s supposed to ask spammers to go away. Not an ideal solution as far as I can say. I’d prefer just increasing the delay, first a minute, then a minute and a half, until they go away. …

  5. By WP Plugins DB » Plugin Details » TarPit on August 9, 2007 at 5:16 am

    [...] Visit [...]

  6. [...] Visit & Download [...]

  7. By Barb’s Blog » Word Press Plug-Ins on April 28, 2008 at 10:32 pm

    [...] I already had in my old version of Word Press, but definately worth a mention here, is the “TarPit” plug in for trackback [...]

  8. By lilo the sequel…. | Jörgen S Öfjäll on September 23, 2008 at 3:31 pm

    [...] har även installerat Kitten’s Spam Words . Med den och TarPit så skall jag inte få så mycket spam på denna och andra sidor på denna [...]

Post a Comment

Your email is never published nor shared.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Subscribe

  • Follow Me

    Twitter  Facebook  Flickr  Last.fm  LinkedIn  StumbleUpon  Technorati  Delicious  
  • Referrals

    Sign up for Text Link Ads and earn money from your blog.
  • Lifestream