In this tutorial I am going to talk about How to block spammer IP Address in Shared Hosting – Godaddy, Bluehost, Hostgator. If attackers killing your server memory by continuous crawling your pages or stealing your content, You can simply block that particular IP address or selected IP range. This method will help you to prevent from attackers who are killing your CPU resources and making your website down.
following are the steps to block IP Address in Shared Hosting
Note: Here i am using my godaddy account, almost all the shared hosting has same steps
Step-1: Log in to your shared hosting cpanel account.
Step-2: In the Security section, click IP Blocker, Or use Ctrl+F and find for IP Blocker
Step-3: Now Add IP address or range you want to block, and then click Add. see attached screen shot.
The above method automatically writes rules in your .htaccess to deny from given IP address. You can directly use .htaccess rules to block IP address and bad boats. follow this tutorial: How to Block IP Address from accessing your website using .htaccess