We can block particular IP address accessing our website.
Login to cPanel and click IP Deny Manager.
Under “Add an IP to deny”, please enter IP address or domain name you wish to block.
Click the Add button.
How to unblock the IP address.
Login to cPanel and click IP Deny Manager.
At the bottom, under “Current IP addresses being blocked”, click Remove.
You can also block an IP by coding your .htaccess file
deny from all allow from 45.123.87.11 allow from 245.123.0.0/12 # country name