The major failing of Akismet ...

  • February 25, 2007
  • James Skemp
  • software

The major failing of the Akismet plug-in is that you can't determine which IPs, if any, are spamming your site the most.

In place of that, you can run the following query to get this information.

select comment_author_ip, count(comment_author_ip) count from wp_comments where comment_approved = 'spam' group by comment_author_ip order by count desc

This query will display the IP of the user who posted a message flagged as spam, and will also display the number of times a user with that IP posted a spam message. Of course, since Akismet deletes comments marked as spam after a certain amount of time, you'll need to run this on a semi-regular basis.

After you have this list, check out where the IP address points to, and if you don't see your users coming from that IP, block it through htaccess. I recommend you also add the date you did this in the comments, so you're aware of why you added the IP. In three months, you may also want to unblock the IP and see what happens.

Of course, you can also use another plug-in to automate this, but after hearing bad stories about the plug-in - Bad Behaviour - I'm not quite willing to go that route yet. Maybe in a couple of months I'll give it a shot.