How To Block IP Address Using .htaccess Method?
We have already covered some interesting topics on wordpress .htaccess hacks.

This post can be used for wordpress or for any website, by editing your .htaccess file.
Image Credit : A Shout
If you are not familiar with .htaccess file, refer to above mentioned post or get in touch with your hosting CC.
If you are receiving Spam comments and other such activities from some person at a specific IP address, then you can easily deny access to your site by creating .htaccess file with the below mentioned code in it.
How To deny I.P. access to your Website using .htaccess File:
First identify the IP address of that visitor. There are two methods for this (I prefer these) :
-
If that visitor already commented in your blog, then you can find that person’s IP address easily from your WP dashboard.
-
Use StatCounterfor finding the IP addresses.