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 
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.

Last Updated On March 22, 2018

Related Articles

No results found

Leave a Reply

Notify of
Copy link