Blocking an IP address stops that visitor or bot from reaching your website. It helps against repeated spam, brute-force login attempts and abusive traffic.
You can blacklist an IP Address to deny access to your website.
1. Log in to your cPanel account.
2. In the Security section, click on IP Blocker.
![]()
3. Under the Add an IP or Range, you should enter the IP Address you want to block.

4. Click on Add.
Here is Example:
Single IP Address: 192.168.0.1
Range: 192.168.0.1-192.168.0.40
Implied Range: 192.168.0.1-40
CIDR Format: 192.168.0.1/32
Implies 10.*.*.* — 192.
Which formats you can use
You can block a single address, a range, or a CIDR block. Be careful with large ranges because they can block real visitors too. Never block your own IP address.
Remove a block
If you blocked the wrong address, remove it from the list in the same IP Blocker page and test again.
Frequently asked questions
Can I block a whole country? IP Blocker works with addresses and ranges. Country blocking needs a firewall or security plugin.
Will the visitor see a message? They will normally see a forbidden message when they try to open your website.
Related guides
Need cPanel hosting in Kenya? See KickHost hosting plans or contact our team.
Found this useful? Share it.
