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

How to Block Visitors and Hackers from Specific Countries in Wordpress

There are two reasons to block countries from visiting a website, first one most of the website are not getting audience from the targeted countries or regions and the second one is to protect website from the hackers. Here will see how to block visitors from different countries in wordpress website.


Step 1: You must need to install IQ Block Country wordpress plugin and activate the plugin. Once you activate it go to settings and click on IQ Block Country as below screenshot.


Step 2: Once you get it to the plugin on the top you can find Home, Frontend and Backend tabs, leave Home tab as it has default settings and now we are going to work on Frontend and Backend tabs only to block the countries.

Step 3: Now, click on Frontend tab first we need to understand what is frontend tab, in the frontend tab you can specify the list of countries that you want to block or don’t want to show website in the particular country visitors.

Step 4: Once you get into the frontend tab, make sure you must click on the “ Block Visitors from visiting the frontend of your website ” check box and in the below you can find the option “ Select the countries that should be blocked from visiting your frontend  ” in this box you have to mention the countries you want to block.


Step 5: Now you have to click on Backend tab, here backend means it’s starts off with all the countries list, click on the “ Block visitors from visiting the backend (administrator) of your website: ” check box as like below screenshot. Next, in the “ Select the countries that should be blocked from visiting your backend: ” box mention those countries you want to block make sure one thing Remove Your Targeting Countries then click on save changes.