Posted by jeremyr on November 5, 2009 at 9:43pm
Jump to:
| Project: | Domain GeoLocalization |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Is it possible to configure this module to auto-detect the user's location from the IP and then push that user to the nearest (Geolocation enabled) domain?
This would save the step of having to enter in a zip code. What do others think of this? I'm willing to help develop this feature however I'm not as good as I thought in module development.
Thanks!
Comments
#1
Since 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.
#2
I'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.
#3
doesn'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.
#4
Hello 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