ameerulislam Posted August 19, 2012 Share Posted August 19, 2012 What I'm looking for is let say if my visitor is from US the it will go to the default mywebsite.com if from UK mywebsite.com/uk from Bangladesh mywebsite.com/bd and so on. If i don't have specific code for certain countries traffic from those countries will just go to he default page. I can get the ip address by $_SERVER['REMOTE_ADDR']; Now, I want to match it with country specific ip addresses. By writing if else statement. But I can't find any library function that contains ip list or something. Can any one advice me here. Quote Link to comment https://forums.phpfreaks.com/topic/267301-country-specific-landing-page-and-redirecting-to-it-based-on-ips/ Share on other sites More sharing options...
Christian F. Posted August 19, 2012 Share Posted August 19, 2012 What you're looking for is called "Geolocation". Though, what happens if someone from Bangladesh is visiting in the UK? Quote Link to comment https://forums.phpfreaks.com/topic/267301-country-specific-landing-page-and-redirecting-to-it-based-on-ips/#findComment-1370633 Share on other sites More sharing options...
ameerulislam Posted August 19, 2012 Author Share Posted August 19, 2012 What you're looking for is called "Geolocation". Though, what happens if someone from Bangladesh is visiting in the UK? And then? Quote Link to comment https://forums.phpfreaks.com/topic/267301-country-specific-landing-page-and-redirecting-to-it-based-on-ips/#findComment-1370635 Share on other sites More sharing options...
Christian F. Posted August 19, 2012 Share Posted August 19, 2012 And then what? This isn't 20 questions, you know, and we're not psychics either. Nor are we here to do the research or coding for you, neither are we here to give you all the answers on a silver platter. What we're here to do is to help those who're trying themselves, and give pointers on what to look for. Also, I think you'll find this article enlightening. Quote Link to comment https://forums.phpfreaks.com/topic/267301-country-specific-landing-page-and-redirecting-to-it-based-on-ips/#findComment-1370639 Share on other sites More sharing options...
ameerulislam Posted August 19, 2012 Author Share Posted August 19, 2012 And then what? This isn't 20 questions, you know, and we're not psychics either. Nor are we here to do the research or coding for you, neither are we here to give you all the answers on a silver platter. What we're here to do is to help those who're trying themselves, and give pointers on what to look for. Also, I think you'll find this article enlightening. Wow, hold on!!. I don't need your help. I'm not new in forums. If you think one or 2 words always helps then you are wrong. I'm not asking u to code for me. I'm going to do it and I have spent a lot of hours as well. I have asked this question in other forums and met a whole let helpful people than you. You didn't really help with the word "Geo-location", I know that already. It seems you are more interested in bullying noobs. That won't work with me coz I'm not a noob. No need to reply further. I'm here to get a real answer, not an argument with a bully like you. My time is expensive. Quote Link to comment https://forums.phpfreaks.com/topic/267301-country-specific-landing-page-and-redirecting-to-it-based-on-ips/#findComment-1370642 Share on other sites More sharing options...
floridaflatlander Posted August 19, 2012 Share Posted August 19, 2012 What I'm looking for is let say if my visitor is from US the it will go to the default I'd kind like to know how to do that too. Quote Link to comment https://forums.phpfreaks.com/topic/267301-country-specific-landing-page-and-redirecting-to-it-based-on-ips/#findComment-1370643 Share on other sites More sharing options...
ameerulislam Posted August 19, 2012 Author Share Posted August 19, 2012 What I'm looking for is let say if my visitor is from US the it will go to the default I'd kind like to know how to do that too. My programmer found a way to identify ips. its on this domain temporarily. I still don't know how though. I'll update u later on floridaflatlander. http://tripacbd.com/ Quote Link to comment https://forums.phpfreaks.com/topic/267301-country-specific-landing-page-and-redirecting-to-it-based-on-ips/#findComment-1370646 Share on other sites More sharing options...
phpassassin Posted August 19, 2012 Share Posted August 19, 2012 hmmm i guess using this one, http://ip-to-country.webhosting.info/ Quote Link to comment https://forums.phpfreaks.com/topic/267301-country-specific-landing-page-and-redirecting-to-it-based-on-ips/#findComment-1370647 Share on other sites More sharing options...
Mahngiel Posted August 19, 2012 Share Posted August 19, 2012 @ameerulislam ChristianF's point was to bring to your attention the need to allow users to pick their localisation. Serving the wrong / undesired language can have adverse affects on your site. And he was also correct in identifying geolocation as the tool you'll be needed. If you're so accustomed to forums - and logic forums to boot - you know that you'll need to analyze a reply... Quote Link to comment https://forums.phpfreaks.com/topic/267301-country-specific-landing-page-and-redirecting-to-it-based-on-ips/#findComment-1370696 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.