Yearly Archives: 2015

cPanel Tutorial: Security – IP Deny Manager

cPanel Tutorial: Security – IP Deny Manager

How to use IP Deny Manager

The IP Deny Manager allows you to prevent an IP address, domain name, or block of IP addresses from accessing your web site. If someone is using a lot of your bandwidth, posting malicious content, or should not be allowed to access your site for another reason, you can preventing them from doing so in the IP Deny Manager.

Deny access to a domain or IP detailed tutorial

Step 1: To access the IP Deny Manager, click on the corresponding icon in the Security section of your cPanel interface.

Step 2: Enter the IP address or domain name you wish to deny access to in the blank field next to IP Address or Domain: (You can enter an IP block such as 1.2.3. to deny access to all IPs that start with 1.2.3.).

Step 3: Click on Add.

Make sure you have entered the IP address or domain in the proper format when adding IPs or domains to deny. IPs should be in the following format 1.2.3.4, and domains should look like domain.com.
Allow access to a denied IP address

If you no longer wish to deny access to a specific IP address, you can use the IP Deny Manager to allow access to that IP address.

Step 1: To access the IP Deny Manager, click on the corresponding icon in the Security section of your cPanel interface.

Step 2: Click on the Remove icon next to the blocked IP or IP range, for which you want to allow access.

cPanel Backup via SSH (single account)

If you want to be able to run a backup for a single account that will create a cPanel package allowing easy transfer between servers, you can use the following commands.

PHP Code:
/scripts/pkgacct username

To allow a user to download this from their home directory, simply run these additional lines.

PHP Code:
mv cpmove-username /home/username
chown username:username cpmove-username