Header Shadow Image


Block WordPress Spammers using .htaccess IP blocks

Your akismet stats will report caught spam over time.  However this can start to number in the thousands.  You can block wordpress spammers using .htaccess IP blocks.  This had a dramatic effect.  This post is an extension of WordPress: Dealing with Comment and User Registration Spam. where we describe how to identify spamming IP's to your blog or site and how to use the caught Akismet spam attempts and to identify IP's that send that out.  Here are the relevent lines in the .htaccess file to do this with:

.htaccess

<Limit GET POST>
order deny,allow
# offending-site-or-IP.com
deny from 1.2.3.123
</Limit>

Happy Hunting!  Questions? Suggestions?  Leave a reply.
?
Cheers,
TK

Leave a Reply

You must be logged in to post a comment.


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License