You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by masionas <mi...@gmail.com> on 2009/02/26 23:39:31 UTC
Re: Redirect / restrict access based on geographical location of
IP.
Hi Guys,
I am looking for similiar thing - get geo Country by IP. What I would like
is to automatically set session locale based on visitor's IP. Example, for
United Kingdom's users it will set UK's locale and hence show the respective
content etc.
The question is does ofbiz have something already built-in for that? Or
should I go with the implementation based on
http://ip-to-country.webhosting.info/ db? Load that csv db in ofbiz entity
and have a <preprocessor> which does lookup etc.
--
View this message in context: http://www.nabble.com/Redirect---restrict-access-based-on-geographical-location-of-IP.-tp6653874p22235084.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Redirect / restrict access based on geographical location of
IP.
Posted by masionas <mi...@gmail.com>.
I think to go then with a combined scheme. First, auto detect and then also
having possiblity to change manually in browser.
David E Jones-3 wrote:
>
>
> The browser's locale is a MUCH better practice. Also consider that
> maybe you have someone visiting a far away place but they don't speak
> the language... it's annoying if a site they visit from the US in
> English comes up there in Chinese or Hindu or Swahili and they have NO
> idea how to even change the language...
>
> Yes, I speak from personal unpleasant experience (well, and of course
> client discussions).
>
> -David
>
> ...
>
--
View this message in context: http://www.nabble.com/Redirect---restrict-access-based-on-geographical-location-of-IP.-tp6653874p22248842.html
Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Redirect / restrict access based on geographical location of IP.
Posted by David E Jones <da...@hotwaxmedia.com>.
The browser's locale is a MUCH better practice. Also consider that
maybe you have someone visiting a far away place but they don't speak
the language... it's annoying if a site they visit from the US in
English comes up there in Chinese or Hindu or Swahili and they have NO
idea how to even change the language...
Yes, I speak from personal unpleasant experience (well, and of course
client discussions).
-David
On Feb 26, 2009, at 3:53 PM, Adrian Crum wrote:
> Why not use the browser's locale setting? Those IP databases can
> have errors, or the user's IP might not be included in the database.
>
> -Adrian
>
> masionas wrote:
>> Hi Guys,
>> I am looking for similiar thing - get geo Country by IP. What I
>> would like
>> is to automatically set session locale based on visitor's IP.
>> Example, for
>> United Kingdom's users it will set UK's locale and hence show the
>> respective
>> content etc.
>> The question is does ofbiz have something already built-in for
>> that? Or
>> should I go with the implementation based on
>> http://ip-to-country.webhosting.info/ db? Load that csv db in
>> ofbiz entity
>> and have a <preprocessor> which does lookup etc.
Re: Redirect / restrict access based on geographical location of
IP.
Posted by Adrian Crum <ad...@hlmksw.com>.
Why not use the browser's locale setting? Those IP databases can have
errors, or the user's IP might not be included in the database.
-Adrian
masionas wrote:
> Hi Guys,
>
> I am looking for similiar thing - get geo Country by IP. What I would like
> is to automatically set session locale based on visitor's IP. Example, for
> United Kingdom's users it will set UK's locale and hence show the respective
> content etc.
>
> The question is does ofbiz have something already built-in for that? Or
> should I go with the implementation based on
> http://ip-to-country.webhosting.info/ db? Load that csv db in ofbiz entity
> and have a <preprocessor> which does lookup etc.