Categories 4 Backup/Restore 27 cPanel - Control Panel 11 Databases 6 DNS - Nameserver 10 Domain Management 4 FTP 6 Installing a Control Panel 8 Mail Filters & SPAM 11 Mobile 3 Others 10 Security 73 SiteWorx (Control Panel) 71 Softaculous 19 SolusVM 17 Wordpress Categories Backup/Restore (4) cPanel - Control Panel (27) Databases (11) DNS - Nameserver (6) Domain Management (10) FTP (4) Installing a Control Panel (6) Mail Filters & SPAM (8) Mobile (11) Others (3) Security (10) SiteWorx (Control Panel) (73) Softaculous (71) SolusVM (19) Wordpress (17) 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,denydeny from IP-ADDRESSallow from allReplace "IP-ADDRESS" with the IP Address you want to block. 0 Users Found This Useful Was this answer helpful? Yes No Related Articles How to protect your website's images from an external website? External Website can use < img /> tag to display an image from your site somewhere else on... How to disable directory browsing using .htaccess? For security purposes, we recommend that you to disable directory browsing on your website so no... How to protect your .htaccess file? For security purpose we recommended you to prevent access to your .htaccess file from... How to restrict directory access by IP address? In order to secure your admin area from hackers, we recommended you to allow access only from... How to blacklist an IP Address to deny it access to your website? You can lock directory with a password by using cPanel "Password Protected Directories" option.1.... Powered by WHMCompleteSolution Tag Cloud cPanel cPanel email email Gmail mail server Support My Support Tickets Announcements Knowledgebase Downloads Network Status Open Ticket