Hi,
we are looking to redirect / restrict access based on geographical location of IP to our ofbiz ecommerce application. Has anybody has done it or something similar? Any suggestions or ideas on how to do it? Thanks Rohit |
1) Create service to determine geo of Id
2) Create method either in java or simple-mehthod, defining break points to various requests under the conditions you specifiy. 3) Have service run as a <preprocessor> in the ecommerce/WEB-INF/controller.xml Being as you're looking for a solution in which you're trying to sell things (ecommerce), I'm not sure I'd be comfortable with the reliability of the various means to determine the geography of an IP (false positives for someone being outside your sales area). This might give you some ideas on how to determine the geo though... http://www.private.org.il/IP2geo.html You would want to define a geo area using the various geo entities to compare in your service. Hope this points you in a workable direction. --- rohit2006 <[hidden email]> wrote: > > Hi, > > we are looking to redirect / restrict access based > on geographical location > of IP to our ofbiz ecommerce application. Has > anybody has done it or > something similar? Any suggestions or ideas on how > to do it? > > Thanks > > Rohit > > -- > View this message in context: > > Sent from the OFBiz - User mailing list archive at > Nabble.com. > > |
Hi Chris,
Thanks for the prompt reply. Just to add, i am trying to restrict users from a particular country to access a particluar catalog on my website, to maitain price confidentiality. I am looking at something basic, as there is no fool proof way to do it (atleast i am not aware of it). One can simply use a proxy server in another country to gain access to the site. Rohit
|
Hi
I ran across this site with an open and free source of the ip's in any particular country. They also seem to have lots of code examples... http://ip-to-country.webhosting.info/ Enjoy... Have you given any thought to adding or planning for a fraud detection scheme that would record the location of an order? Thanks Daniel On Thu, 2006-10-05 at 00:56 -0700, rohit2006 wrote: > Hi Chris, > > Thanks for the prompt reply. Just to add, i am trying to restrict users from > a particular country to access a particluar catalog on my website, to > maitain price confidentiality. I am looking at something basic, as there is > no fool proof way to do it (atleast i am not aware of it). One can simply > use a proxy server in another country to gain access to the site. > > Rohit > > > > cjhowe wrote: > > > > 1) Create service to determine geo of Id > > 2) Create method either in java or simple-mehthod, > > defining break points to various requests under the > > conditions you specifiy. > > 3) Have service run as a <preprocessor> in the > > ecommerce/WEB-INF/controller.xml > > > > Being as you're looking for a solution in which you're > > trying to sell things (ecommerce), I'm not sure I'd be > > comfortable with the reliability of the various means > > to determine the geography of an IP (false positives > > for someone being outside your sales area). This > > might give you some ideas on how to determine the geo > > though... > > http://www.private.org.il/IP2geo.html > > > > You would want to define a geo area using the various > > geo entities to compare in your service. Hope this > > points you in a workable direction. > > > > --- rohit2006 <[hidden email]> wrote: > > > >> > >> Hi, > >> > >> we are looking to redirect / restrict access based > >> on geographical location > >> of IP to our ofbiz ecommerce application. Has > >> anybody has done it or > >> something similar? Any suggestions or ideas on how > >> to do it? > >> > >> Thanks > >> > >> Rohit > >> > >> -- > >> View this message in context: > >> > > http://www.nabble.com/Redirect---restrict-access-based-on-geographical-location-of-IP.-tf2386877.html#a6653874 > >> Sent from the OFBiz - User mailing list archive at > >> Nabble.com. > >> > >> > > > > > > > |
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. |
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. |
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. |
I think to go then with a combined scheme. First, auto detect and then also having possiblity to change manually in browser.
|
Free forum by Nabble | Edit this page |