How to deny website access for certain IP addresses?
Add the following lines to the .htaccess file located in the root directory of your website:
Allow from all
Deny from 220.127.116.11
Deny from 18.104.22.168
Here, 22.214.171.124, 126.96.36.199 are IP addresses with denied website access.
Make sure not to block your IP address by accident. You can learn your IP address here: Learn more about blocking.