Fr$@kin’ Sploggers

Moderating all these freaking spam comments pointing to useless splogs are a pain. I’ve tried a few of the plugins for Wordpress but I haven’t gotten any of them to install properly. The one that comes pre-installed, Aksimet, hasn’t stopped any comments at all! Aksimet is now working properly. Thanks Renaum So, I figured out some minimal php and came up with my own filtration system that will at least limit the amount of comments needing moderation.

Since most of the splogs use a .info domain I figured the easiest thing would be to just ignore any posts made where the author’s url contains “.info”.

Here is the code I added to wp-comments-post.php starting at line 26:

// If the user’s URL is a .info domain, dump it
if (strlen(stristr($comment_author_url, ‘.info’)) > 0) {
  die( __(‘Spam comment is being ignored.’) );
}

Maybe if I get better with php I might revisit it to see how it can be written more efficiently but for now it will suffice.

I also know that any urls like www.infoseek.com where .info isn’t the domain will also get canned. But for now it’s a starting point. Let me know if you see a way to improve this script.

4 Responses to “Fr$@kin’ Sploggers”

  1. Renaun Erickson Says:

    Aksimet works great for me and WordPress it catches hundreds each day. Did you register for the free service and put the key in the admin section? It does not work right out of the box.

  2. James O'Reilly Says:

    Yes, I registered for the API key on Wordpress’ site and plugged that into Aksimet’s configuration screen under plugins. I also made sure it was active and it does nothing. Maybe my key doesn’t match my site. I’ll go back to Wordpress’ site and see if I have a proper key. Now that I know someone has it working properly I’ll try and figure it out why it isn’t working for me.

  3. James O'Reilly Says:

    I tried pasting the API code in again a few more times, activating and deactivating the plugin a more few times and you know what, I think Aksimet is working!!! No clue why it wasn’t working before, but I won’t complain. Renaum, thanks for mentioning it was working for you or I probably wouldn’t have messed around with it again.

  4. Jason Pippin Says:

    You may also want to look into the Bad Behavior plugin for wordpress. I’ve been pretty happy with it.

Leave a Reply


Bad Behavior has blocked 605 access attempts in the last 7 days.