How do you reduce spam on your blog in WordPress

Ever since I started my blog I have had some problems with spam comments on my blog.

So I just want to tell some of the things i have done, trying to reduce the spam comments on my blog. And maybe get some ideas to fight it even harder.

1. Close comments on Older posts.
This will reduce the amount of spam you can recieve, unless you write many blog post every day, there will be less blog post for the spammers to comment on.

wordpress-close-comments

2. Use Captcha plugin

I have installed the SI CAPTCHA Anti-Spam plugin, and seames to work alright, but there are stil spam comments comming

3. Hold a comment in queue.
I settings, under Comment moderation you can specify weather to put a commetn in queue if there is more than X links in the somment.
I use 2 in this setting

Captured1

4. Other plugins
There are are al lot of other plugins you can use, but i haven’t tried them all. Askimet is often mentioned, but does it work. Would like to know that befoer i buy it.

Doeas anybody have experience with this.

5. Ban empty referrers

Spam often come from robots, and they will never visit your site, so they don’t have any refers. so you could use the folowing code to ban them.

Log in to WordPress administration area of your blog and go to “Theme Editor”. Select your blog’s theme and open the functions.php file for editing. Paste the following code:

function verify_comment_referer() {
if (!wp_get_referer()) {
wp_die( __('You cannot post comment at this time,
may be you need to enable referrers in your browser.') );
}
}
add_action('check_comment_flood', 'verify_comment_referer');
?>

Thanks to Internet Techies for the tip.

Other things you could do, but I haven’t yet.

Ban IP addresses – Is this a good idea ?
Switch comment system ?

If anybody have a idea, or have tried any of the above, I would like to hear how they work.

This entry was posted in Spam, Tip, Wordpress and tagged , , . Bookmark the permalink.

2 Responses to How do you reduce spam on your blog in WordPress

  1. Take a look at Akismet. It’s an excellent comment spam utility.

  2. Steve says:

    Akismet captures a lot of it, it is a very good plug in. I use it along with a plug in called Zig Trap. It adds a hidden field on the comment form that a real life human being can’t see. The robo spamers that troll the comment code will fill in this extra field which acts as a flag, then the plugin prevents the comment from even being stored in the wordpress backend. So far it has blocked around 8k robo comments on my site and I’ve only had it on there for the past month. Akisment has blocked around 18k, since the start of my site 3yrs ago. It’s still a good idea to have all comments sent to moderation in my opinion, you never know what someone is going to post. It doesn’t take that long to review and approve appropriate comments.

Comments are closed.