Breadcrumbs

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 134.249.140.212

Deny from 188.163.77.204

 

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

 

Click here http://www.toshop.com/htaccess-generator.cfm to generate your .htaccess file