I have been running a website with WordPress blog since few time.

I have been receiving email reporting that few specific address has been posting un-related comments in my website. I am receiving like one email per minute from same IP address.

So since the IP address is posting un-related comments I would like to block it.

But don't know how?

Its something like:,


You can block them using htaccess by putting something like this in the htaccess file in your root Wordpress directory:

Order Deny,Allow
Deny from
  • does it works for: IP: , too – KoolKabin Jan 11 '12 at 1:55
  • I updated my answer to block the specific IP address that is causing your problem. – John Conde Jan 11 '12 at 2:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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