Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3409
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: How to redirect user based on user country? |
| Date | 2011-10-14 09:31 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <4E97E53A.4090309@arnowelzel.de> (permalink) |
| References | <92d71fb7-3888-4f1f-a64b-7eae67ac0025@q4g2000yqh.googlegroups.com> |
justaguy, 2011-10-14 05:00: > Hi, > > I wonder how we can accomplish this task? > Say, a user from India lands at http://www.knowledgenotebook.com/download.html > (actually it would be http://www.knowledgenotebook.com/download.php ) > I'd like to direct this visitor to http://bla.bla.bla.bla.in/download.html > > And if the user is from China > it would be redirected to http://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 Welzel http://arnowelzel.de http://de-rec-fahrrad.de
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