KNOWNHOST WIKI

User Tools

Site Tools


control-panels:cpanel-whm:ip-blocker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
control-panels:cpanel-whm:ip-blocker [2019/10/10 15:21]
Karson N.
control-panels:cpanel-whm:ip-blocker [2020/06/02 11:52] (current)
Karson N.
Line 3: Line 3:
 Although a VPS or Dedicated Server will often already have a firewall installed, to detect potentially-malicious behavior and automatically block those IP addresses from making any connections to the server, sometimes you will only want to keep an IP address from accessing a particular website. This is often done using .htaccess rules, but cPanel also has a [[https://documentation.cpanel.net/display/ALD/IP+Blocker|feature]] to help create these rules for you. Although a VPS or Dedicated Server will often already have a firewall installed, to detect potentially-malicious behavior and automatically block those IP addresses from making any connections to the server, sometimes you will only want to keep an IP address from accessing a particular website. This is often done using .htaccess rules, but cPanel also has a [[https://documentation.cpanel.net/display/ALD/IP+Blocker|feature]] to help create these rules for you.
  
 +\\
 ===== How to Block an IP Address or Address Range ===== ===== How to Block an IP Address or Address Range =====
  
Line 9: Line 10:
 Then, in section "Security", click "IP Blocker": Then, in section "Security", click "IP Blocker":
  
-  * {{:control-panels:cpanel-whm:security-ip-blocker.png?nolink&800|}}+{{:control-panels:cpanel-whm:security-ip-blocker.png?nolink&1200|}}
  
 Next, enter the IP address or address range in the box and click "Add": Next, enter the IP address or address range in the box and click "Add":
  
-  * {{:control-panels:cpanel-whm:add-ip.png?nolink&800|}}+{{:control-panels:cpanel-whm:add-ip.png?nolink&1200|}}
  
 You should then see a confirmation screen like this: You should then see a confirmation screen like this:
  
-  * {{:control-panels:cpanel-whm:ip-add-confirm.png?nolink&800|}}+{{:control-panels:cpanel-whm:ip-add-confirm.png?nolink&1200|}}
  
 Then when you go back, you should see the newly-added IP or range in the "Currently-Blocked" list: Then when you go back, you should see the newly-added IP or range in the "Currently-Blocked" list:
  
-  * {{:control-panels:cpanel-whm:ip-in-list.png?nolink&800|}}+{{:control-panels:cpanel-whm:ip-in-list.png?nolink&1200|}}
  
 If desired, you can check the site's .htaccess file and see that the block is there: If desired, you can check the site's .htaccess file and see that the block is there:
  
 <code> <code>
-root@host [~]# tail -1 /home/USER/public_html/.htaccess +  root@host [~]# tail -1 /home/USER/public_html/.htaccess 
-deny from X.X.X.X+  deny from X.X.X.X
 </code> </code>
  
 +\\
 ===== How to Unblock an IP Address or Address Range ===== ===== How to Unblock an IP Address or Address Range =====
  
Line 38: Line 40:
 Look in the list for the IP address or address range you would like to unblock, and click the "Delete" button in that row: Look in the list for the IP address or address range you would like to unblock, and click the "Delete" button in that row:
  
-  * {{:control-panels:cpanel-whm:unblock-click-delete.png?nolink&800|}}+{{:control-panels:cpanel-whm:unblock-click-delete.png?nolink&1200|}}
  
 cPanel will ask you if you are sure. If you are sure you want to unblock the IP, click "Remove IP". Otherwise, click "Cancel": cPanel will ask you if you are sure. If you are sure you want to unblock the IP, click "Remove IP". Otherwise, click "Cancel":
  
-  * {{:control-panels:cpanel-whm:unblock-are-you-sure.png?nolink&800|}}+{{:control-panels:cpanel-whm:unblock-are-you-sure.png?nolink&1200|}}
  
 After unblocking the IP, you should see a confirmation screen like this: After unblocking the IP, you should see a confirmation screen like this:
  
-  * {{:control-panels:cpanel-whm:ip-unblock-confirm.png?nolink&800|}}+{{:control-panels:cpanel-whm:ip-unblock-confirm.png?nolink&1200|}}
  
 Then when you go back, the IP address will no longer be listed in the "Currently-Blocked" list: Then when you go back, the IP address will no longer be listed in the "Currently-Blocked" list:
  
-  * {{:control-panels:cpanel-whm:ip-not-in-list.png?nolink&800|}}+{{:control-panels:cpanel-whm:ip-not-in-list.png?nolink&1200|}}
  
 <WRAP tip round> <WRAP tip round>
control-panels/cpanel-whm/ip-blocker.1570738894.txt.gz · Last modified: 2019/10/10 15:21 by Karson N.