Help to grow our community add an Ask Box on your blog It's free
in Websites + Social Media by 5 23 55
There are ways to block an IP address from spamming your site. You'll need to add the IP address to the restricted listing on the site. When the IP address tries to leave a comment the comment is posted in the trash automatically. I can block them from posting comments. Now I want to block them from accessing my site completely. How can you stop an IP address from opening up your site so they can't continue to add spam to the site that is thrown in the trash when it is posted. 
by 2 4 12
If you are using any CMS like Wordpress then there will be any plugin to block IP addresses. Almost every platforms have plugins to block IPs to control spam. You can use the command ' Deny from xxx. xxx. xxx. xxx ' on htaccess file to block an ip. Replace xxx part with the Ip address to block.

If you want to block multiple ip addresses then you can use the below format in htaccess file.

Deny from xxx. xxx. xxx. xxx  yyy. yyy. yyy. yyy etc.

You can also block the entire subnet by using the command 'Deny from'
by 5 23 55
I fully understand this and I have done this. However, the only thing it seems to do is to dump the comment directly in the trash. It won't block the IP address from accessing my site completely. I am tired of cleaning up the trash and all the comments this one IP address keeps leaving on my site. All they seem to do is change their email address and come again. The comment is moved directly to the trash. Then I must block this email address so they can't comment again. I don't want them to even be able to open my website. That is what I need. 

Please log in or register to answer this question.

Most active Members
November 2019:
  1. akanetuk1 - 187 activities
  2. ruthmongare - 43 activities
  3. Winwin - 31 activities
  4. Sprite1950 - 27 activities
  5. ninabonita - 27 activities
  6. greencrayon - 17 activities
  7. Shivam Ugale - 16 activities
  8. CharlotteSky - 8 activities
  9. Dona-Wells - 6 activities
  10. Keibah - 6 activities
Most answered Members
October 2019:
  1. ruthmongare - 68 answers
  2. akanetuk1 - 47 answers
  3. Sprite1950 - 42 answers
  4. greencrayon - 29 answers
  5. Leyley - 28 answers
  6. Poehere - 14 answers
  7. Keibah - 12 answers
  8. traiti - 7 answers
  9. faruquerehan - 6 answers
  10. merleneNMS - 6 answers