Skip to content

Instantly share code, notes, and snippets.

@htasirx
Last active February 24, 2023 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save htasirx/a85b355aee141ae084f6e30bcbaf7ff4 to your computer and use it in GitHub Desktop.
Save htasirx/a85b355aee141ae084f6e30bcbaf7ff4 to your computer and use it in GitHub Desktop.
How to Use the IP Blocker in cPanel

How to Use IP Blocker in cPanel - Step-by-Step Guide

If you're running a website or managing a server, you may encounter situations where you need to block certain IP addresses from accessing your site or server. This is where the IP Blocker feature in cPanel can come in handy. In this tutorial, we'll show you how to use the IP Blocker feature in cPanel to block specific IP addresses from accessing your website or server.

Blocking an IP address in cPanel

Step 1: Login to cPanel First, log in to your cPanel account. You can access cPanel by going to yourdomain.com/cpanel or by logging in through your web hosting provider's control panel.

Step 2: Access the IP Blocker feature Once you're logged in to cPanel, navigate to the Security section and click on IP Blocker.

ip block cpanel 1

Step 3: Block an IP address To block an IP address, enter it into the "Add an IP or Range" field and click the "Add" button. You can block a single IP address or a range of IP addresses. If you're blocking a range, use a hyphen to separate the starting and ending IP addresses (e.g. 192.168.0.1-192.168.0.255).

ip block cpanel 2

Step 4: Manage blocked IP addresses Once you've added one or more IP addresses to the blocklist, you can manage them by scrolling down to the "Currently-Blocked IP Addresses" section. From here, you can remove an IP address from the blocklist by clicking on the "Delete" button next to it.

ip block cpanel 3

Step 5: Test the block To test the block, you can try accessing your website or server from the blocked IP address. If the block is working correctly, you should receive an error message or be unable to access the site or server.

That's it! You now know how to use the IP Blocker feature in cPanel to block specific IP addresses from accessing your website or server. It's a useful tool for managing your website's security and protecting against malicious traffic.

Here's a summary of the steps:

  1. Login to cPanel
  2. Access the IP Blocker feature
  3. Block an IP address
  4. Manage blocked IP addresses
  5. Test the block

If you have any questions or need further assistance, don't hesitate to contact your web hosting provider's support team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment