FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » recognize country
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: recognize country [message #184183 is a reply to message #184180] Sat, 14 December 2013 15:32 Go to previous messageGo to previous message
Lew Pitcher is currently offline  Lew Pitcher
Messages: 60
Registered: April 2013
Karma:
Member
On Saturday 14 December 2013 08:43, in comp.lang.php, "nawfer"
<novalidsforspam(at)alt(dot)al> wrote:

> which code to use for send page
> x
> y
> z
> depending by user's nation?

It is not possible to do this *reliably*.

You can /infer/ location (and, thus, country) from the client's IP address
($_SERVER["REMOTE_ADDR"]) and various third-party tools, but this location
is often practically inaccurate, and is theoretically not usable at all.

As for techniques and third-party tools, Let Me Google That For You
http://lmgtfy.com/?q=IP+geolocation

Please note that it *is possible* to have, for instance, an IP address
nominally from a European source, originating from North America, or vice
versa. And, let's not forget tools like Tor, that provide "country-local"
IP addresses for remote systems, by way of an encrypted piping mechanism.

--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Apache HTTP Server
Next Topic: activating a JS script from PHP redirect
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Jul 01 23:46:33 GMT 2024

Total time taken to generate the page: 0.05074 seconds