How to block an IP address in cPanel

  1. Open "IP Blocker" (group "Security").
  2. In "IP Address or Domain", enter an address, range or subnet.
  3. Click "Add".
Blocking an address
Blocking an address
What to blockHow to write it
One address192.0.2.15
Range192.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.

Blocked addresses
Blocked addresses

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".

Questions and answers
Most likely the site runs through Cloudflare with proxying. Block the address in Cloudflare.
Click "Delete" in the address row of the blocked list.