Knowledgebase
Portal Home > Knowledgebase > Security > How to ban any IP Address via .htaccess?
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.
Also Read
How to Enable or Disable Mod Security in cPanel?
4068
How to Enable the Two-Factor Authentication on Your cPanel Account?
4506
How to protect a folder with username and password in cPanel?
4291
How to blacklist an IP Address to deny it access to your website?
3758
How to protect your website's images from an external website?
3827