In your CPanel account - go to "Site Management" and then select "Ip Deny Manager"
Another method using .htaccess
If you need to block an IP address from accessing a directory on your site, place the following into an .htaccess file located in the directory you wish to block their access from:
Order Allow,Deny
Allow from all
Deny from 111.111.111.111
Replace 111.111.111.111 with the IP you wish to block.
If you need to block more than one ip:
Order Allow,Deny
Allow from all
Deny from 111.111.111.111
Deny from 222.222.222.222
If you wish to deny access to an entire block of IPs, only give a portion of the IP:
Order Allow,Deny
Allow from all
Deny from 111.111
(be careful as this method can block thousands of IPs, including those that may be friendly)
Categories
Backup/Restore
4
Billing & Accounts
7
cPanel - Control Panel
77
Databases
22
DNS - Nameserver
6
Domain Management
14
Email
100
FTP Questions
42
Installing a Control Panel
6
Others
3
Pre-sales Questions
9
Scripts & Applications
106
Security
18
SiteWorx (Control Panel)
60
SolusVM
19
SSL
5
Troubleshooting
4
Categories
Tag Cloud
How do I block IP Addresses? Print
- 0
Was this answer helpful?
Related Articles
Guide to .htaccess
http://httpd.apache.org/docs/2.0/howto/htaccess.html
Turning off directory listings
You can easily manage which directories are indexed (viewable) by using the "Index Manager" tool...
Password protecting a directory
You can easily password protect a directory using the directory password tool in your account...
Joomla Security Links
A few links we suggest for help with securing your Joomla...
WordPress Security Resources
Here are a few links that can help you to secure your WordPress sites.Think you've been...