Semalt Explains How To Block Some Countries From Accessing Your Site

Page 1

23.05.2018

Semalt Explains How To Block Some Countries From Accessing Your Site

If you own a website or blog, you must be familiar with the fact that it is accessible to all the countries by default. Various sites are not relevant to the people in other states, so we should not expect the signi cant traf c and visits from them. For instance, if you have a local bookshop and your market is people of your own country, then you don't need to let other countries waste the bandwidth of your server. There are various reasons why blocking access to certain countries is necessary. The best reason is that your site will cater only to the local people and has nothing to do with the outsiders, so you can stop Google, Bing, and Yahoo from indexing your site for those states. Here, Ross Barber, the Semalt Customer Success Manager, has discussed the most common methods to block countries:

1. The .htaccess le If you are a webmaster, you might know that editing .htaccess le can bene t your site in a lot of ways. The legit hackers and spammers use proxies and bot farms to perform their tasks. A webmaster, however, can block the suspicious IP addresses so that the hackers cannot do naughty things online. Your .htaccess le is likely to grow to thousands of lines of text if you block the unwanted countries. For this, you just need to place a speci c code in the .htaccess le, and the code is: Order Deny, Allow Deny from 1.1.1.1 Deny from 2.2.2.2 Deny from 3.3.3.3 https://rankexperience.com/articles/article1970.html

1/2


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.