Log in to cPanel.
Click on IP Blocker
Enter an IP address or range you would like to block, then click Add
You have now blocked anyone using the IP address which you have specified from accessing your website. You can also see which IP addresses are currently being blocked and you can remove IP blocks by clicking on Remove IP