LLLLLLL Posted January 13, 2014 Share Posted January 13, 2014 This forum is "programming theory" so I assume this is the most appropriate place to put this. (Admins or someone feel free to move this if the location is incorrect.) The issue is that a site, example.com, loads slowly to international users because of its US-based host. So the thought is to buy... example.co.uk example.in example.br example.cn ... and host those domains on servers near the respective location. Or something like this. So the question is... what's the best way to handle users getting to the right site from the right location? There are google results out there that sort of address this question, but I'm wondering what has worked for others, or what you've heard of working. I think the solution will be to install a package on my server that can tell where the user is from, and to either redirect the user outright or to let them click a link to go to a more "local" version of the website. Thoughts? Have you handled this? Howso? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/285321-geo-targeting-suggestions/ Share on other sites More sharing options...
QuickOldCar Posted January 14, 2014 Share Posted January 14, 2014 Can use geolocation tools that are free from a few places. http://www.geoplugin.com/ http://www.maxmind.com/en/geolocation_landing So add the same script you create to the header of all your sites. Depending on their location do a redirect to the proper top level domain. Keep .com as default, if detects their ip is in a country code that you happen to own..send them there. Quote Link to comment https://forums.phpfreaks.com/topic/285321-geo-targeting-suggestions/#findComment-1465152 Share on other sites More sharing options...
sKunKbad Posted February 12, 2014 Share Posted February 12, 2014 The problem we have seen with geo location is that it isn't reliable. Sometimes it says I'm in Los Angeles, and sometimes it says I'm in Virginia. Those locations are about 3000 miles apart. Quote Link to comment https://forums.phpfreaks.com/topic/285321-geo-targeting-suggestions/#findComment-1468624 Share on other sites More sharing options...
ignace Posted February 12, 2014 Share Posted February 12, 2014 (edited) You don't need to do any fancy geo-location as google automatically detects (and for SEO you should tell them all your domains to avoid duplicate content penalty) the location of the server and the extension and users from those countries will automatically see your website for that specific country. Edited February 12, 2014 by ignace Quote Link to comment https://forums.phpfreaks.com/topic/285321-geo-targeting-suggestions/#findComment-1468631 Share on other sites More sharing options...
LLLLLLL Posted February 12, 2014 Author Share Posted February 12, 2014 I do need geo-location because I'm not going to create a website for each country of the world. Just regional servers. So someone in Japan would visit the Asian server even if it's not .jp Quote Link to comment https://forums.phpfreaks.com/topic/285321-geo-targeting-suggestions/#findComment-1468646 Share on other sites More sharing options...
sKunKbad Posted February 12, 2014 Share Posted February 12, 2014 Why not use a cloud type hosting of just a single domain? Seems like a lot less work, and then you don't need to worry about any of this. Quote Link to comment https://forums.phpfreaks.com/topic/285321-geo-targeting-suggestions/#findComment-1468670 Share on other sites More sharing options...
LLLLLLL Posted February 12, 2014 Author Share Posted February 12, 2014 Almost every cloud hosting I've seen has stupid limitations, for example no HTTPS Quote Link to comment https://forums.phpfreaks.com/topic/285321-geo-targeting-suggestions/#findComment-1468671 Share on other sites More sharing options...
xylex Posted February 14, 2014 Share Posted February 14, 2014 You're looking for setting up "Geo DNS" - Google that and it will have the info you're looking for. My preference is to use AWS's Route53 for this, good tutorial at http://www.cyberciti.biz/cloud-computing/aws/route-53-geodns-tutorial/ Quote Link to comment https://forums.phpfreaks.com/topic/285321-geo-targeting-suggestions/#findComment-1468974 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.