How to ban any IP Address via .htaccess?

Updated 2 months ago 8962 views
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.

Still need help?

If this article did not answer your question, our support team can help.

Contact support Browse all articles