In short
To block an IP address in cPanel, open IP Blocker under Security, enter the verified address or the narrowest justified range, and select Add. Test from a different connection, then check Currently-Blocked IP Addresses. If legitimate traffic is affected, use Delete and Remove IP to undo the rule.
Key takeaways
- The current cPanel IP Blocker accepts a single address, an explicit or implied range, CIDR notation, and a partial prefix.
- A cPanel IP block controls website access, not separate services such as Webmail.
- Verify the address against URLs, timestamps and repeated activity before creating a rule.
- Test from a second public network because a private browsing window does not change the source IP.
- Rotating sources, path-based attacks and high request volume usually need firewall or hosting-provider controls instead of an expanding manual blocklist.
Contents
- How do you verify the IP before blocking it?
- How do you block a single IP address in cPanel?
- How do you block an IP range without blocking too much?
- How do you test that the block works safely?
- How do you unblock an IP address in cPanel?
- What if your own IP is blocked?
- When is cPanel IP Blocker the wrong tool?
- What else should you know about blocking IPs in cPanel?
- What should you do after the block is in place?
A cPanel IP block is a narrow containment measure for activity tied to a specific network source. The safest workflow is to preserve the evidence, create the smallest useful rule, test both blocked and legitimate access, and record how to reverse it. Treat IP blocking as one control within a broader website security checklist, not as proof that the underlying security problem is resolved.
How do you verify the IP before blocking it?
Confirm that the address appears repeatedly in site logs for the same unwanted pattern, and compare the requested URLs, timestamps, methods, response codes and user agent before creating a rule. Do not block an address solely because it appears once or looks unfamiliar.
The cPanel Visitors interface can display recent visitor IP addresses, requested URLs, times and user agents, with status and request-method fields available as additional data. The cPanel Visitors documentation was last modified on July 8, 2026. (docs.cpanel.net)
For a longer record, cPanel's Raw Access documentation explains how to download compressed access logs for a domain. Preserve the relevant log lines before blocking so the reason for the decision is not lost when traffic patterns change. (docs.cpanel.net)
What should you confirm first?

Before adding the rule:
- Save the relevant log lines, including the timestamp and timezone.
- Confirm repeated unwanted requests from the same source.
- Record the exact URLs, methods, status codes and user agent involved.
- Exclude known office, administrator, developer and monitoring addresses.
- Check whether the activity is reaching sensitive paths, forms or login pages.
- Start with one verified address unless the evidence clearly supports a range.
- Write down the removal steps before saving the rule.
If many unrelated visitors appear under the same address, stop before blocking it. Apache's access-control documentation warns that a server behind a proxy may see the proxy address rather than the original client unless visitor-IP restoration is configured correctly. Blocking that shared address could deny every visitor using the same intermediary. (httpd.apache.org)
Block the smallest verified source, not the broadest pattern that happens to contain it.
Performance you can feel, backed by clients who depend on it. Read how our support and uptime create long‑term customer success.Power Your Business with Better Hosting
How do you block a single IP address in cPanel?
Open cPanel, select IP Blocker under Security, enter the verified address in the IP Address or Domain field, and select Add. Confirm that the address appears in the Currently-Blocked IP Addresses table before testing the result.
Where do you enter the address?
The official cPanel IP Blocker documentation, last modified July 8, 2026 and checked on August 28, 2026, uses the interface labels IP Address or Domain, Add, and Currently-Blocked IP Addresses. (docs.cpanel.net)
- Sign in to the correct cPanel account.
- Open Security, then select IP Blocker. The cPanel search field can also locate the interface by name.
- Enter the single verified IP address in IP Address or Domain.
- Check the address carefully for missing or transposed digits.
- Select Add.
- Confirm the new entry under Currently-Blocked IP Addresses.
- Record the address, the evidence and the time the rule was created.
The field also accepts fully qualified domain names, but a response to IP-based evidence should normally use the verified address rather than a guessed hostname.
A hosting provider can disable the IP Blocker interface through its cPanel feature configuration. The official documentation also states that IP Blocker controls access to the website only; it does not block separate services such as Webmail. If the interface is missing or the unwanted activity targets another service, contact the hosting provider rather than editing unfamiliar server files.
A single-address rule is the safest starting point because it limits the number of legitimate visitors exposed to a mistaken block.
How do you block an IP range without blocking too much?
Enter an explicit range, implied range or CIDR block only when logs show that the abusive activity spans multiple addresses. A range rule denies every matching address, so the evidence must justify the larger impact.
The examples below are taken from cPanel's documentation and are not addresses to copy into a live blocklist.
| Input style | cPanel example | What the input represents |
|---|---|---|
| Single address | 10.5.3.33 | One address |
| Explicit range | 10.5.3.3-10.5.3.40 | Every address from the stated start to end |
| Implied range | 10.5.3.3-40 | A shortened form of the same local range |
| CIDR | 10.5.3.3/32 | One address expressed in CIDR notation |
| Partial prefix | 10. | Every address beginning with the supplied prefix |
cPanel warns that the partial input 10. represents all addresses beginning with 10, which shows how quickly an abbreviated rule can become very broad. The interface converts entered ranges into CIDR-formatted subnets, adds them to .htaccess, and displays the resulting server setting with beginning and ending addresses. If .htaccess is edited directly instead, the official documentation says to use CIDR format only. (docs.cpanel.net)
An IP address should not be treated as a confirmed individual. IETF RFC 5684, published in 2010, explains that network address and port translation can allow multiple private hosts to share one public address simultaneously. A block may therefore affect several people, devices or customers who had no involvement in the abusive request. IETF RFC 5684 documents that limitation. (rfc-editor.org)
Start with a single address. Expand the rule only when adjacent addresses show the same repeated pattern and the operational cost of blocking the full range has been considered.
The current cPanel IP Blocker page gives IPv4 examples but does not provide an IPv6 input example. Apache supports IPv6 addresses and IPv6 CIDR restrictions, but the account interface and hosting stack should be confirmed with the provider before relying on an IPv6 block. (httpd.apache.org)
A range block is justified only when evidence shows that the abuse spans that range and the collateral impact is acceptable.
Host your website with our 5-star rated, cPanel website hosting plans.
Super fast servers, with security included and hosted in your choice of Australian Data Center.
View cPanel Plans
How do you test that the block works safely?
Test the rule from a separate public connection while also checking that normal visitors, administrators and forms still work. A valid test proves both that the target is denied and that the rest of the website remains usable.
Use this sequence:
- Record the rule and the public IP used for the test.
- Keep one unaffected administrator session open in cPanel.
- Use a second connection, such as a phone on mobile data with Wi-Fi switched off, or ask a colleague on another network to test.
- Request a normal page and the specific path associated with the unwanted activity.
- Confirm that the controlled test source is denied.
- From an unaffected connection, test the homepage, administrator login, forms and any checkout or booking path.
- Review the access log to confirm the expected source and response.
- Remove a temporary test block as soon as the test is complete.
Private or incognito browsing is not an independent network test. It changes local browser storage but normally sends requests through the same router and public address.
Apache access controls commonly return a 403 Forbidden response when a visitor is denied, although a custom error page or an upstream security layer may change what appears in the browser. The response should be checked alongside the server log rather than judged from the page design alone. (httpd.apache.org)
If the source still reaches the site, do not keep adding wider rules. Recheck whether the log contains the visitor's real address, whether the entry appears in Currently-Blocked IP Addresses, and whether another web layer is answering the request before it reaches the rule.
A safe test proves two things at once: the target is denied and legitimate users can still use the website.
How do you unblock an IP address in cPanel?
Open IP Blocker, find the address or generated CIDR entry in Currently-Blocked IP Addresses, and select Delete in its Actions column. Confirm the change by selecting Remove IP, then retest from the previously blocked connection.
Where is the removal control?
- Sign in to cPanel and open IP Blocker.
- Scroll to Currently-Blocked IP Addresses.
- Identify the correct entry by checking its server setting, beginning IP and ending IP.
- Select Delete in the Actions column.
- On the confirmation screen, select Remove IP.
- Return to the list and confirm that the entry has disappeared.
- Retest the affected website from the same external network.
A blocked IP entry in cPanel is reversible, but removal from this list does not override a separate application firewall, server firewall, security plugin or automatic provider block. If access remains denied, record the time and response before asking the provider which layer rejected the request.
Removing the exact rule is safer than creating a broader exception that may conflict with other access controls.
What if your own IP is blocked?
If cPanel still opens, use IP Blocker to remove the website rule from Currently-Blocked IP Addresses. If cPanel, Webmail or other services are also unavailable, the website-level IP Blocker is unlikely to be the only cause.
Use the symptoms to choose the next step:
- The website returns an access error, but cPanel opens: Remove the relevant IP Blocker entry and retest.
- The website and cPanel fail only from one network: Contact the hosting provider because a server-level or automated security block may be involved.
- The website fails from every network: Check the provider's service status and investigate availability rather than assuming one visitor IP was blocked.
- The entry was a range: Check whether the current public address falls anywhere between the displayed beginning and ending addresses.
Give support the public IP, affected URL, exact timestamp with timezone, error response and a screenshot. That evidence is more useful than reporting only that the site is down.
If cPanel has your IP blocked from more than the website, the hosting provider must identify and reverse the control responsible.
Register your new domain name at competitive market prices including free domain add-ons like privacy, DNS Hosting, Custom Nameservers and Forwarding.
Always the best price and no nasty renewal price hikes.
Register A Domain Name
When is cPanel IP Blocker the wrong tool?
Use cPanel IP Blocker for one or a few verified sources producing a contained website-access problem. Use a different control when the source rotates, the attack targets a request pattern rather than an address, or traffic volume threatens the connection or server itself.
Which control matches the problem?

| Observed problem | Better control | Reason |
|---|---|---|
| One or a few verified addresses | cPanel IP Blocker | A narrow, reversible deny rule matches the evidence |
| The same malicious URL or payload from many addresses | Web application firewall | The rule can match request behaviour instead of chasing sources |
| High-volume traffic or network saturation | Provider intervention or DDoS-protected web hosting | Account-level .htaccess rules do not replace upstream capacity and filtering |
| Repeated login attempts | Login rate limits, stronger authentication and application controls | The defence stays attached to the login workflow as addresses change |
| Attacks on cPanel, mail or other services | Server-level or provider controls | cPanel IP Blocker is documented as a website-access control |
The 2026 cPanel web application firewall guidance explains that firewall rules can reduce malicious web traffic but may also block legitimate requests. Rules and event logs therefore need regular review for false positives rather than being enabled and forgotten. (docs.cpanel.net)
If suspicious requests coincide with unknown administrator accounts, altered files, redirects or malware warnings, an IP block does not clean the website. Follow the steps for protecting a website from malware and arrange a technical review of the application, credentials and files.
Manual IP blocking is useful for a narrow source; repeated or distributed abuse needs a control that follows the attack pattern.
What else should you know about blocking IPs in cPanel?
The following questions cover the common boundary cases around cPanel IP blocking. Each answer assumes the address has been verified against website logs before a deny rule is added.
Is there a way to block an IP address?
Yes. In cPanel, open IP Blocker under Security, enter a verified single address or range in the IP Address or Domain field, and select Add. The rule controls access to the website. It does not, according to cPanel's August 2026 documentation, block separate services such as Webmail.
How do I block my IP address location?
If block my IP address location means hide your own IP, cPanel IP Blocker is not the right tool; it only denies selected visitors access to a website. If it means block visitors by country or region, use a supported geographic firewall control rather than guessing large IP ranges.
Can I block an IP address from my website?
Yes. A website owner with access to cPanel's IP Blocker can deny a specific IP address from reaching the website. Verify the address in Visitors or Raw Access first, use the narrowest rule possible, and test from another connection so the administrator's own access is not mistaken for the blocked visitor.
How to block the entire IP range?
To block an entire IP range in cPanel, enter an explicit start-to-end range, an implied range, or CIDR notation in IP Blocker, then select Add. Use range blocks cautiously because every address inside the range is denied, and one public IPv4 address can represent more than one user.
The correct block is defined by verified traffic evidence, not by how large a range the interface permits.
Experience Microsoft 365 Business Standard for free for 30 days.
Up to 25 users with full access to email, OneDrive and Teams. Includes full versions of desktop apps of Outlook, Word, Excel, PowerPoint and more.
Try Microsoft 365
What should you do after the block is in place?
Keep a dated record containing the address, evidence, rule format, person responsible, test result and review date. Remove stale entries when the original activity no longer justifies the risk of denying legitimate visitors.
If the hosting setup needs cPanel access backed by Australian support, security controls and remote backups, review Up Time Web Hosting's cPanel Website Hosting plans. The current plan page lists those features, with some availability conditions noted by plan. (uptimewebhosting.com.au)
The safest cPanel IP block is the smallest verified rule with a tested way back out.








