How to block an IP address in cPanel
- Open "IP Blocker" (group "Security").
- In "IP Address or Domain", enter an address, range or subnet.
- Click "Add".

| What to block | How to write it |
|---|---|
| One address | 192.0.2.15 |
| Range | 192.0.2.1-192.0.2.40 or 192.0.2.1-40 |
| Subnet (CIDR) | 192.0.2.0/24 |
| Everything starting with 192. | 192. |
Blocked addresses appear in the list. "Delete" in a row removes the block.

The block closes access to the account websites. It does not block email or FTP.
If the site runs through Cloudflare with proxying on (orange cloud), the site sees Cloudflare addresses instead of visitors, and an IP block will not work. Block such addresses in Cloudflare: "Security" -> "WAF" -> "Tools".