asked in Websites + Social Media by LEGEND (7,490 points) 4 15 39
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. 
replied by (111 points) 2 10
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 xxx.xxx'
replied by LEGEND (7,490 points) 4 15 39
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.

Related questions

0 answers 1replies
4 answers 1replies
asked Jul 13, 2018 in Computers+Laptops by ruthmongare LEGEND (6,391 points) 5 10 21
1 answer 0replies
asked Dec 1, 2018 in Websites + Social Media by Martinsx ELITE (3,548 points) 3 7 11
1 answer 1replies
asked Jul 13, 2018 in Websites + Social Media by Ludwig Randell (140 points) 1 4 24
4 answers 0replies

2,974 questions

9,362 answers

4,528 replies

2,018 users

Most active Members
May 2019:
  1. Leyley - 60 activities
  2. Robcomp - 35 activities
  3. pmahajan18 - 19 activities
  4. leslishambly - 16 activities
  5. SmartAZ - 16 activities
  6. pinakigoswami - 15 activities
  7. Quest227 - 9 activities
  8. Nidhi Soni - 7 activities
  9. Amilia summers - 7 activities
  10. lincy - 6 activities
Most answered Members
April 2019:
  1. Leyley - 11 answers
  2. Robcomp - 4 answers
  3. leslishambly - 3 answers
  4. pinakigoswami - 3 answers
  5. Henry Mathew - 2 answers
  6. Anindita - 2 answers
  7. rsaxena50 - 1 answers
  8. bryangreene - 1 answers
  9. shailender - 1 answers
  10. marcstephens - 1 answers