asked in Websites + Social Media by VISIONARY (9,007 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 VISIONARY (9,007 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,145 questions

9,776 answers

4,637 replies

2,412 users

Most active Members
September 2019:
  1. Leyley - 25 activities
  2. amnelso - 4 activities
  3. lincy - 4 activities
  4. greencrayon - 3 activities
  5. anvitha M - 2 activities
  6. devanshchaurasiya - 2 activities
  7. Jolejnik - 1 activities
  8. Alison Bd - 1 activities
  9. Kanika Gupta - 1 activities
  10. guru4556 - 1 activities
Most answered Members
August 2019:
  1. Poehere - 137 answers
  2. Leyley - 27 answers
  3. Viola968 - 22 answers
  4. lincy - 4 answers
  5. katloves95 - 4 answers
  6. C.M.Gower89 - 3 answers
  7. Econ24 - 3 answers
  8. Alexander Jean-Mary - 2 answers
  9. rojanecruzz - 1 answers
  10. efusionworld - 1 answers