WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am seeing that in the last 2 months blocked spam comments in Akismet have jumped from around 8k to more than 100k in each of the last two months. Is there any way to stop them being posted in the first place?

share|improve this question
up vote 0 down vote accepted

You can prevent some hits by blocking bots before akismet catches them, these plugins can be very effective.


Stop bots with no user agents from posting and directory browsing (this goes in your .htaccess)

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule .* - [F]

Options All -Indexes
Options +FollowSymLinks

If it's still a problem consider contacting your host and using a firewall to block persistant bots or IP ranges ( for instance here is a list of bad bots, http://www.wpsecure.net/bad-bot-list/ ). This is not super effective as is, but an example of what your logs can tell you ( most bad bots use common browser user-agents).

Check out services like Cloudflare.

share|improve this answer

You could make sure users have to be registered and logged in to comment.

You could also add a CAPTCHA plugin so valid users have to type in a code before posting.

At the end of the day though it seems Aksimet is doing it's job and stopping the spam which is surely a good thing?

share|improve this answer
yes but I am worried about the effect on server load, would a plugin like Bad Behavior help? – drtanz Jul 19 '11 at 10:16
Definitely worth a try – Vince Pettit Jul 19 '11 at 12:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.