How Can We Help?

How to ban any IP Address via .htaccess?

If someone is trying to hack your website or you want to block their IP Address, you can add this line to your .htaccess file.

order allow, deny
deny from IP-ADDRESS
allow from all

Replace “IP-ADDRESS” with the IP Address you want to block.

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Next How to blacklist an IP Address to deny it access to your website?
Table of Contents
Customers' reviews on Hostings.info Website Roof is listed on whtop.com Website Planet IPV6 Supported Secured by Imunify360