How to Ban an IP Address using .htaccess

12 sec read

If you do not want a certain person/IP Address to access your website you can add the following code to your .htaccess file 

order allow,deny 
deny from xxx.xxx.xxx.xxx 
allow from all

In the above code replace the xxx with the IP Address that you would like to Ban accessing your website

Last Updated On March 22, 2018

Leave a Reply

avatar
  Subscribe  
Notify of