asked in Websites + Social Media by LEGEND (7,630 points) 5 15 39
If one IP address keeps spamming your website how do you block this IP address and stop it from sending you spam message? Can you block it permanently so it can no longer access your website?
replied by (111 points) 2 10
If you want to block an ip address from accessing your website you can use this code by editing the htaccess file.

Go to to the sitess root directory and edit the .htaccess file. You may need to change the option in your control panel to show all files including hidden files (only if needed). In most cases it will not be hidden
Select htaccess file and click on edit.

Copy this code in it anywhere below rewrite mod (or below all codes)

Eg: Deny from 000.000.000.000

Note: Replace the ip address to the specific ip address instead of 000.000.000.000

Save the htaccess file and you're done.

Please log in or register to answer this question.

Related questions

0 answers 2replies
asked Aug 12, 2018 in Websites + Social Media by Poehere LEGEND (7,630 points) 5 15 39
4 answers 1replies
asked Jul 13, 2018 in Computers+Laptops by ruthmongare LEGEND (6,391 points) 5 10 21
4 answers 0replies
asked Jul 3, 2018 in Websites + Social Media by Vilma (534 points) 1 3 18
1 answer 1replies
asked Jul 13, 2018 in Websites + Social Media by Ludwig Randell (140 points) 1 4 24

3,057 questions

9,530 answers

4,572 replies

2,223 users

Most active Members
July 2019:
  1. Poehere - 14 activities
  2. paulinavacas - 13 activities
  3. Cleofe - 9 activities
  4. Sai Vineeth - 6 activities
  5. Rasul Raza - 5 activities
  6. SmartAZ - 5 activities
  7. lincy - 4 activities
  8. Ayriel Balsor - 3 activities
  9. Rachellatte - 3 activities
  10. Karen G. - 3 activities
Most answered Members
June 2019:
  1. Option 1 - 30 answers
  2. Leyley - 16 answers
  3. pinakigoswami - 7 answers
  4. DawnG17 - 5 answers
  5. SmartAZ - 5 answers
  6. lincy - 4 answers
  7. Melissa_MK - 4 answers
  8. Liz Malone - 3 answers
  9. GodisLove - 3 answers
  10. Lhisa - 3 answers