good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: How to check the origin ofi a visitor?by jaldhar (Vicar) |
on Jun 19, 2004 at 21:31 UTC ( [id://368209]=note: print w/replies, xml ) | Need Help?? |
You're possibly thinking of $LANG and the $LC* environment variables but they are about language and cultural features (such as currency symbols) not country. There are some methods for mapping IPs to countries but do not rely on them. For instance I noticed that many Indian ISPs resell accounts from US ISPs. A visitor from one of them would show up as American not Indian. So why not just ask instead of trying to guess? --
In Section
Seekers of Perl Wisdom
|
|