How to Ban an IP Address using .htaccess

No Comments

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

Image Credits: Photo by Isis França on Unsplash.

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link