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 184.108.40.206
Deny from 220.127.116.11
Here, 18.104.22.168, 22.214.171.124 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.