If there is an IP address you want to block from your website, you can do so inside Cpanel. Here are the steps:
- Log into your Cpanel account.
- Under “Site Management”, go to IP Deny Manager.
- Under “Add an IP Deny:” enter in the IP address you wish to block.
- Click “Add”.
You’re all set! In case if you need to remove the IP banning, all you need to do is remove the string it created in your .htaccess file or select it from the drop down menu on the IP Deny Manager page.
Note: NEVER block your own IP address!