Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #3409
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Arno Welzel <usenet@arnowelzel.de> |
| Newsgroups | comp.lang.php |
| Subject | Re: How to redirect user based on user country? |
| Date | Fri, 14 Oct 2011 09:31:06 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 25 |
| Message-ID | <4E97E53A.4090309@arnowelzel.de> (permalink) |
| References | <92d71fb7-3888-4f1f-a64b-7eae67ac0025@q4g2000yqh.googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| Injection-Info | mx04.eternal-september.org; posting-host="KSNaR21y99BgGFPoSQKzUg"; logging-data="23299"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18caSJK17159BKUSS8g7ARENQk4RvUWiHU=" |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
| In-Reply-To | <92d71fb7-3888-4f1f-a64b-7eae67ac0025@q4g2000yqh.googlegroups.com> |
| Cancel-Lock | sha1:k7E6Ib/ZsLzAjMKxfG0wBnuoqbI= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.php:3409 |
Show key headers only | View raw
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