lbh2011 Posted January 27, 2013 Share Posted January 27, 2013 Does anyone have a preferred or recommended method of restricting access to a website depending on which country the visitor originates from? I would like to prevent users from accessing (or registering to access) the website from anywhere outside of the United Kingdom. I am aware of various .htaccess and php methods but am also aware that .htaccess methods for example can prevent Google from indexing the site correctly. Quote Link to comment https://forums.phpfreaks.com/topic/273682-limit-access-by-country/ Share on other sites More sharing options...
Christian F. Posted January 27, 2013 Share Posted January 27, 2013 The closest you can get is by using a GeoIP service, and then try to filter away known proxies. This will allow you to add Google's IP-addresses to a white list, so that it can index your site. Though, the wisdom of doing that while blocking others I'm not too sure of. SEO experts will have to chime in on that one. Also: Please don't mess with the font sizes for your post, makes them harder to read. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/273682-limit-access-by-country/#findComment-1408518 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.