Active
Project:
Domain GeoLocalization
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2009 at 21:43 UTC
Updated:
24 Jul 2020 at 04:18 UTC
Jump to comment: Most recent
Comments
Comment #1
nonsieSince this adds extra functionality not required for most sites I think this should be a bridge module between Domain Geolocalization and another module that provides ip based detection. So far http://drupal.org/project/geosniper seems to provide all the data needed but has added complexity. Ideally there would be a module like http://drupal.org/project/geoip that provides the data based on user's ip address and the bridge module performs redirects based on ip data/domain geolocalization data.
Comment #2
jeremyr commentedI've been looking into ways it could theoretically be done. It seems that geosniper does really well at providing the IP details however it's limited to 25 queries a day, not so good on high-traffic sites.
The other I was looking at was a database that you can either get a "lite" database that is free or pay for the slightly more accurate data source and pay a subscription to MaxMind.com. Really, maxmind might be the way to go because it offers the free database, but maybe there is a way to choose the data source you want to use.
The way I've thought it out is that the IP could be looked up on first visit and then redirected upon finding the nearest domain. Not sure where this would have to happen.
Comment #3
plasticlax commenteddoesn't ip2country do what we need here? at least for a country level? uc_multiprice uses it.
i agree that the idea of redirecting the user without them having to enter a zip code is ideal.
Comment #4
mrgoltra commentedHello All,
I have been looking around and this is the closest post that is related to what I am doing. I am creating a site where I would like user to be redirected to the correct domain via IP/IP range.
For example user1 is coming from an ip range of AAA.BBB.X.X (located in City A) and be redirected automatically to subdomain.domain.com
user2 (located in City A) with ip CCC.DDD.X.X will be redirected to subdomain2.domain.com
I was hoping that geoip + ip2locale will have the option to manually enter the IP/IP range.
Can anyone suggest how can this be done?
Thank you,
Mark
Comment #5
shashank5563 commented