Webmasters Stack Exchange is a question and answer site for pro webmasters. 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 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:,

share|improve this question
up vote 1 down vote accepted

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
share|improve this answer
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 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.