Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3417
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: How to redirect user based on user country? |
| Date | 2011-10-14 12:18 +0100 |
| Organization | albasani.net |
| Message-ID | <j795pf$vca$3@news.albasani.net> (permalink) |
| References | <92d71fb7-3888-4f1f-a64b-7eae67ac0025@q4g2000yqh.googlegroups.com> <4E97E53A.4090309@arnowelzel.de> <745b9617-e5c1-4a62-89f8-9edae6915ec6@o14g2000vbd.googlegroups.com> |
justaguy wrote: > On Oct 14, 3:31 am, Arno Welzel <use...@arnowelzel.de> wrote: >> justaguy, 2011-10-14 05:00: >> >>> Hi, >>> I wonder how we can accomplish this task? >>> Say, a user from India lands athttp://www.knowledgenotebook.com/download.html >>> (actually it would behttp://www.knowledgenotebook.com/download.php) >>> I'd like to direct this visitor tohttp://bla.bla.bla.bla.in/download.html >>> And if the user is from China >>> it would be redirected tohttp://bla.bla.bla.bla.cn/download.html >>> so and so forth. >>> This approach would be more elegant if easily doable. If so how? >> You can use a GeoIP database (e.g. <http://www.maxmind.com/app/php>) >> which gives you a rough location based on the IP address of the client. >> This doesn't make sence of course without servers actually located in >> different countries. >> >> -- >> Arno Welzelhttp://arnowelzel.dehttp://de-rec-fahrrad.de > > All right, thanks, so, it's quite involved. Yes. You need to develop and probably manually maintain a database of IP address blocks versus country.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to redirect user based on user country? justaguy <lichunshen84@gmail.com> - 2011-10-13 20:00 -0700
Re: How to redirect user based on user country? Arno Welzel <usenet@arnowelzel.de> - 2011-10-14 09:31 +0200
Re: How to redirect user based on user country? justaguy <lichunshen84@gmail.com> - 2011-10-14 02:42 -0700
Re: How to redirect user based on user country? The Natural Philosopher <tnp@invalid.invalid> - 2011-10-14 12:18 +0100
Re: How to redirect user based on user country? houghi <houghi@houghi.org.invalid> - 2011-10-14 19:09 +0200
Re: How to redirect user based on user country? justaguy <lichunshen84@gmail.com> - 2011-10-15 08:25 -0700
Re: How to redirect user based on user country? Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-14 05:53 -0400
csiph-web