In the past, I’ve only allowed comments on recent blog posts, not older ones. Because I didn’t blog for the longest time, I had no recent blogs posts, which meant I got no comments (or comment spam). When I re-launched JeffCroft.com recently and started writing again, I actually started getting comments again (thanks, guys!). Of course, I also started getting comment spam again. Like, a ton of it. On average, I was getting about 10 comment spam posts per hour.
Frustrated, I went to my standby from the good ‘ol days, Akismet. I quickly found that it wasn’t working for me. It was letting through most of the spam and also preventing a lot of ham from being posted. After a tweet on the matter, Mike Davidson pointed me down a path that has worked beautifully for two weeks now — not a single comment spam post.
Here are the relevant bits of code from my app:
I hope this proves helpful!