Blocking an IP address in cPanel can help protect your website from unwanted access, spam, or malicious activity. Here’s how to do it:
Step 1: Log in to cPanel
- Access Your cPanel:
- Navigate to your cPanel URL (e.g., https://yourdomain.com/cpanel).
- Enter your username and password to log in.
Step 2: Locate the "Security" Section
- Find Security Tools:
- In the cPanel dashboard, scroll down to the "Security" section.
Step 3: Click on "IP Blocker"
- Open IP Blocker:
- Click on "IP Blocker." This tool allows you to manage IP address restrictions easily.
Step 4: Enter the IP Address
- Input the IP Address:
- In the "Add an IP Address" field, enter the IP address you want to block. You can also block a range of IP addresses using CIDR notation (e.g., 192.168.1.0/24).
- Click "Add" or "Block" Button:
- After entering the IP address, click the "Add" or "Block" button.
Step 5: Confirm the Block
- Success Message:
- You should see a success message confirming that the IP address has been blocked.
Step 6: Review Blocked IPs
- View Blocked IPs:
- You can scroll down on the IP Blocker page to see a list of currently blocked IP addresses. If needed, you can unblock them from here as well.
Conclusion
Blocking an IP address in cPanel is a simple process that can enhance your website's security. By following these steps, you can prevent unwanted visitors from accessing your site, helping to protect your resources and maintain performance.
