How do I deny IP address access?

Do you want to stop someone from visiting your website? This tool will block anyone from a specified IP address.

How to find out a visitor's IP address. Use the web statistics tools to find more information on your visitors. We suggest you go to cPanel and click the Latest Visitors icon. Look for the Host information; it could be an IP or a domain name.

How to block the IP address.

  1. Login to cPanel and click IP Deny Manager.
  2. Under "Add an IP to deny", please enter IP address or domain name you wish to block.
  3. Click the Add button.


How to unblock the IP address.

  1. Login to cPanel and click IP Deny Manager.
  2. At the bottom, under "Current IP addresses being blocked", click Remove.

You can also set an option for deny from all, which will deny everyone.

This must be done by coding your .htaccess file as follows:

deny from all
allow from 70.24.291.52
allow from 216.130.49.223 #my house

Was this answer helpful?

 Print this Article

Also Read

Mail folder

UCclouds uses a maildir system, which means that all your email boxes and messages are stored as...

How do I backup / restore / move from one cPanel host to another?

How can I restore my site with old/previous content? Please submit a Support Ticket and add in...

I accidentally deleted the public_html or www folder.

If you delete the www folder, your site should still load properly. If you delete the...

How to View Website Statistics in cPanel using AWStats

This tutorial will teach you how to check on who is viewing your website using the program in...

How to download a home directory backup

Backups are very important part of maintaining a website. It is important to backup your files on...