In some cases we might need to restrict the access to the website from some countries. This can be achieved by configuring the .htaccess file of the website.
Step1: Download the ipaddress list belongs to the countries that we need to restrict, from the below given website.
Please note to download it in .htaccess format.
Step2: Update the downloaded rules to the .htaccess file of our website.