|Block users by geographical location?|
Is this possible, and is it ethical?
A client, for genuine reasons, wants to block US users from reaching his site.
I read it was possible to block users by IP using the ht access file..
So next question is, can you block a range of users, and do IP addresses give you any geographical indication?
And, lastly, would this be ethical?
Blocking by DNS name would likely be substantially easier since most non-US domain names end in a country code. If you were to block .com, .edu, .org, and .us you'd likely have most of the US visitors. Another approach might be to only allow visitors from selected country codes. There is some overlap, overseas people surfing via US hosts and vice versa. Blocking by IPs is probably impractical simply due to the large number of IPs you would need to identify and filter for. Any of these appraoches can be implemented in the .htaccess file.
I don't see an ethical question at all. A site that advertizes for a mail order business that only services Europe, for example, may wisely choose not to allow visitors from the US to avoid international orders/shipping costs. The person that builds a site and pays the server fees has the right to exclude any visitors he chooses.
> for genuine reasons, wants to block US users
If you don't mind me asking, what are the reasons? Would it not be better to sell the US traffic on to someone else through an affiliate scheme or whatever (if possible)?
A fine idea!! Some further discussion required...
I don't see an ethical problem, but I see big logistic problems... There's no way to determine who's coming from where all the time. If you block .com/.org/.net visitors, you'll block a lot of non-us folks too. Not to mention, I know our site gets a significant handful of visitors from unresolved IPs, which means you'd also be allowing some US visitors at the same time.
I don't see any reason why you *shouldn't* do it... but I don't see any really effective way that you *could* do it either.
I see no problem on the ethics side, but I agree with mivox to a large degree. I believe there would be a significant overkill by restricting access.
How do Lycos, Google etc redirect by geography/IP? There's obviously some way of doing it - I'm having dark ideas about transferring non-UK visitors direct to my merchants without worrying about them having to click on a banner... hmm...
Don't forget people aren't always who they appear to be, I might not be from the US but there for a day on business, or more likely I might be using a proxy in the US (or may be using a corporate WAN that breaks out to the internet from the US even though I am in the UK).
These situations wont be common but its worth thinking about.
I think we're going to go with sugarkanes affilliate idea - much more sensible!
Yes, for sure, there would be somebody blocked that shouldn't be etc etc not worth the bother I don't think...