Help to grow our community add an Ask Box on your blog It's free
in Websites + Social Media by 5 23 55
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?
by 2 4 12
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.

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