in reply to How to check the origin ofi a visitor?
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?