To block an IP address follow the below steps.
1. Login to your cPanel.
2. Under security section, click on IP Deny Manager.
3. Below Add an IP to deny, enter the IP address or domain name you want to block.
4. Click Add to complete.
To unblock an IP address view the Current IP addresses being blocked and select the IP address you want to unblock and click Remove.