There are many occasions when you may need to block IPs. Maybe there is a bad bot or just an IP trying to get access to your WordPress admin area. cPanel allows you to easily block IPs.
The steps to block an IP or IP range are:
- Log into your cPanel account
- Go to SECURITY area -> IP Blocker
- Enter the IP (or IP range) that you want to block in the field IP Address or Domain
- Click the Add button. Now, those IPs will not be able to access your site anymore.
Notice that you can also input domain names in this tool(like bad-site.com). The IP Blocker will automatically find the IP of the domain.
And the video tutorial is here: