How to Block IP Addresses Using cPanel
Is your website getting hit with suspicious traffic, brute-force attacks, or spam bots? One of the quickest ways to stop them is to block their IP addresses directly through cPanel.
In this guide, you’ll learn how to use cPanel’s IP Blocker tool to block specific IPs or entire IP ranges from accessing your website.
✅ Why Block IP Addresses?
Blocking IPs is useful when:
- You’re experiencing repeated login attempts or brute-force attacks
- Spammers or scrapers are overloading your site
- Certain countries or regions are the source of malicious traffic
- You want to restrict access to a private site
It’s a fast, easy way to boost security without extra plugins or tools.
🚀 How to Block IPs Using cPanel
Step 1: Log in to cPanel
Access your hosting account via yourdomain.com:2083
.
Step 2: Open the IP Blocker Tool
Scroll to the Security section and click on IP Blocker.
🧾 Step 3: Add an IP or Range to Block
In the Add an IP or Range field, enter one of the following:
- A single IP address (e.g.,
192.168.1.1
) - A full range (e.g.,
192.168.1.1-192.168.1.255
) - A subnet (e.g.,
192.168.1.0/24
)
Click Add to block that IP or range from accessing your site.
✅ The IP will be denied access immediately, and visitors from that address will see an error page instead of your site.
🔍 Where to Find IPs to Block
- Use website analytics tools (like Google Analytics or AWStats in cPanel)
- Check your CMS security plugin logs (e.g., Wordfence for WordPress)
- Monitor server logs for suspicious behavior or repeat offenders
🔄 How to Unblock an IP
If you mistakenly block an IP or want to lift the restriction:
- Scroll down to Currently-Blocked IP Addresses
- Find the IP you want to remove
- Click Delete
The IP will now be able to access your website again.
⚠️ Tips for Using IP Blocker Safely
- Never block your own IP — double-check before adding!
- Avoid blocking shared IPs that may belong to multiple users
- Use country-level blocking only if absolutely necessary
- Combine with firewall or security plugins for layered protection
Blocking IP addresses using cPanel is a fast and effective way to shield your site from unwanted traffic, spam, or attacks. It’s beginner-friendly and doesn’t require advanced security tools.
Not sure which IPs to block or accidentally locked yourself out? Contact our support team and we’ll help you sort it out quickly.