You may block access to your website from specific IP addresses by using a .htaccess file.

You need to create this file in your public_html folder and add these example lines:

order allow,deny deny from allow from allĀ 

These lines will block access for all users using IP address. Just change the to the IP you want to block.

You can download the list of each country IPs from the following link: Countryipblocks

Did this answer your question?