Jump to content

Limit access by country


lbh2011

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.