Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Finding out which country a user comes from using $_ENV[HTTP_...]

by George_Sherston (Vicar)
on May 01, 2003 at 16:33 UTC ( #254699=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use CGI;
    use Geo::IPfree qw(LookUp);
    my ($countrycode,$country) = LookUp($cgi->remote_host);
    print $countrycode,"\n",$country;
    
  2. or download this
    GB
    United Kingdom
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://254699]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2020-10-26 06:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (250 votes). Check out past polls.

    Notices?