Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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: 178.238.232.234, 234.232.238.178.static.giga-dns.com

share|improve this question

1 Answer 1

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 178.238.232.234
share|improve this answer
    
does it works for: IP: 178.238.232.234 , 234.232.238.178.static.giga-dns.com 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

 
discard

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.