Skip to the content

chrispederick.com chrispederick.com

Search
  • Blog
  • Work
  • Photos
  • Videos
  • Forums
  • About
  • Contact

Combatting Spam

  • General
  • 4 Comments
  • 2 years ago on November 20, 2005

I do not get too much spam on this site, but recently I have made a couple of changes in order to combat spam.

Blog Spam

The out of the box spam protection in WordPress is pretty good and I was using the number of links in a comment to put suspected spam in the moderation queue. While this caught nearly all spam it also required manual intervention on my part to check the queue and approve any legitimate comments.

Last month Matt Mullenwegg posted about Akismet - “a new web service that stops comment and trackback spam”. I immediately installed the WordPress plugin and since then comment spam has been a non-issue - Akismet has caught every single spam comment with no false positives so far.

Sending Spam

Recently I started getting some strange emails originating from my contact form. Looking at the full email headers it became clear that I was the subject of an email injection exploit and the form was being used to send spam. I am certainly not an expert on this subject, but I thought that I would post a couple of useful links that describe how to fix potential email injection holes in your PHP code.

Firstly, the PHP Mail documentation includes a number of useful tips in the User Contributed Notes section. The most useful tip is a link to a helpful article about email injection. Using these tips and the suggestions from the article I have been able to stop the contact form from being used to send spam.


Related Posts

  • Increased Spam 2 years ago on February 14, 2006
  • Illegal Videos 1 year ago on March 9, 2007
  • Web Developer Status Report 4 years ago on April 28, 2004

4 Comments

matt law

2 years ago

November 21, 2005

and I was hoping for an article on subversive removal of cans of spam from supermarket shelves …. bummer.

Chris Pederick

2 years ago

November 22, 2005

Hehe - sorry to disappoint! :)

Jerome Dahdah

2 years ago

December 9, 2005

Thanks for the heads up on Akismet! I’ve added it to my blog and it’s done wonders. :)

Jessica

2 years ago

December 9, 2005

I ve added that plus the MT black list to my blog to prevent spammers from posting but sometimes it over protects but have not had a problem with it since.I think one day we the blogginf communnity will win the war on spam!

Comments are closed

Latest Comments

  • Chris Pederick on Webmaster Jam Session 2008
  • Samah on Webmaster Jam Session 2008
  • Peter on Web Developer 1.1.6

Popular Posts

  • Web Developer 1.1.4 and User Agent Switcher 0.6.10
  • Firefox 2.0 Compatibility
  • Illegal Videos

  • Feeds
  • Blog powered by WordPress
  • Spam filtering powered by Akismet
  • Hosted with Media Temple

Copright © 2003-2008 Chris Pederick.