Home Web Development Block an IP from your Webserver
Block an IP from your Webserver PDF Print E-mail
Written by Administrator   

If you are seeing a potential attack from an certain IP you want to block follow the below steps.


1. Login to your cPanel or FTP


2. Navigate to the root public_html directory


3. Open the .htaccess file. If not represent create a new .htaccess file


4. Add similar to the the following:

Order Deny,Allow

Deny from

Deny from


(Basically Deny from... then the IP address to want to block)


Click here to generate your .htaccess file