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
https://forums.phpfreaks.com/topic/273682-limit-access-by-country/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.