Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

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

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
This entry was posted in Plugins, WordPress and tagged , , , . Bookmark the permalink.

92 Responses to Spammer Tar Pit

  1. Pingback: wordlog.com » Slow Down Spammer Boy!

  2. Pingback: Photo Matt » The Trouble With WordPress

  3. Pingback: snapping links » managing spam floods in WP

  4. Pingback: CMS Blog Community

  5. Pingback: Canned !! -- my Atropine » 2004 » September » 13

  6. Pingback: Charles on... anything that comes along » The war on blog spam: going about as well as the one on terrorism

  7. Pingback: Rage on Omnipotent » WP anti-spam

  8. Pingback: geek ramblings » Spammers are stupid

  9. Pingback: WISWYG in Vancouver » Spam Comment

  10. Pingback: Blogs Of The Day » popular articles on WordPress blogs

  11. Pingback: Starlit Dreams

  12. Pingback: the life of justin

  13. Pingback: Weblog Tools Collection

  14. Pingback: dot-totally.co.uk

  15. Pingback: geek ramblings » Spammers are still stupid

  16. Pingback: cliffrowley :: blog

  17. Pingback: Spam, spam, spam, merveilleux spam… (Almaren)

  18. Pingback: dot-totally.co.uk

  19. Pingback: WOIFM

  20. Pingback: Wikilab » Comment spam

  21. Pingback: Kick & Scream

  22. Pingback: the life of justin » must kill spam

  23. Pingback: [rmfo-blogs.com]: About

  24. Pingback: Kitten's Project Blog » Comment Spam Thoughts

  25. Pingback: Woordenaar | over leven » Commentspam deel zoveel +1

  26. Pingback: Canned !! -- my Atropine

  27. Pingback: projektguerilla » Blog Archive » Fight Spam

  28. Pingback: Blog - Journal Thoughts » WordPress Blog: Fighting Spammers

  29. Pingback: Nico.se - blog » Blog Archive » Spam Stopgap och Kitten’s Spaminator

  30. Pingback: :: My Virtual Pensieve :: » Blog Archive » Oh I hate Spam….

  31. Pingback: My true site

  32. Pingback: Webbie's Webblog » Webblog Spammers

  33. Pingback: g.killingtime.net » Post-Thanksgiving ramblings

  34. Pingback: Origamifried Chicken » Stupid spammers

  35. Pingback: The Blog That Goes Ping » That’ll Teach Me To Sneer

  36. Pingback: eric's site » cowboy comment spam banning

  37. Pingback: myownworld.org » The Spaminator

  38. Pingback: Manish Lad > Blog Archive > Wordpress updates

  39. Pingback: The Linux Blog » Trackback Spam

  40. Pingback: Serenity, now! » Finally…

  41. Pingback: A Cognizant Discourse » Blog Archive » Silly Spammers

  42. Pingback: The ePiC rAmblInGs of JustIsengard » Let the Spam begin….

  43. Pingback: Standing Tall » Blog Archive » WordPress プラグイン一覧追加情報(6)

  44. Pingback: Woordenaar | Archief » Commentspam deel zoveel +1

  45. Pingback: Taking Your Camera on the Road » WordPress Blog: Fighting Spammers

  46. Pingback: Patrick's Rants

  47. Pingback: Un Cielo Provvisorio » Mnemosine

  48. Pingback: Webbie’s Webblog » Blog Archive » Powered By The WordPress

  49. Pingback: collisionbend.com -- A Cleveland Ohio Weblog by Will Kessel » Four Layers

  50. Pingback: MakrohÃ¥rd.se » Blog Archive » lilo the sequel….

  51. Pingback: Greymatters » Blog Archive » Blogging: The Nuclear Option

  52. Pingback: Interesting News Posts

  53. Pingback: Tar for Windows - Tar Links

  54. Pingback: Not an artist

  55. Pingback: WP Plugins DB » Plugin Details » TarPit

  56. Pingback: 30 Spam Fighting WordPress Plugins at WordPress Themes, Plugins, Blog Tips, Make Money Online >> WPthemesplugin.com

  57. Pingback: Barb’s Blog » Word Press Plug-Ins

  58. Pingback: lilo the sequel…. | Jörgen S Öfjäll

  59. Pingback: Upgrading the Defenses | GFMorris.com

  60. Pingback: Plugin per Wordpress: Anti Spam & Captcha | Uni Ragazzi

  61. Pingback: SPAM Prevention with WP!! | Canned Atropine!!

  62. Pingback: Comment Spam: 46+ Free Tools & Resources to Stop Blog Spammers

Leave a Reply to Anonymous Cancel reply

%d bloggers like this: