Tuesday, December 15, 2015

How to Block Visitor from Specific Countries

If you are a website owner you don’t want to access you are website all the visitors from certain countries due to different factors like, your website targeting audience are different from your actual visitors of your website, if your website targeting one specific language audience at time you no need to those those who doesn’t understand the language of the website and last one is to minimize the you are website bandwidth.

Here is the solution for blocking visitors from specific countries, IP2Location

Step 1: In the first step you have to select the IP versions like IPv4 or IPv6, you have to specify in the first step.

Step 2: In this step you have to specify the country you want to block  for unregistered user can generates table for 1 country at one time. Registered user can generates up to 30 countries at one time.

Step 3: Now choose the output format of the file, there are different types of formats like, .htaccess allow, .htaccess deny, CIDR, Linux iptables and etc… choose Apache .htaccess deny from the drop down menu.

Step 4: You will get to download a text file which is to be uploaded to your homepage’s directory as .htaccess.
4.png

No comments:

Post a Comment