- Original Message -
From: Hytham Shehab [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 4:21 AM
Subject: Re: Finding the country
Randal L. Schwartz wrote:
If you're using it to force the language of the page, no. Use the
browser specification instead
Hello all,
Is it possible to find out the country of my web page visitors using a Perl
script?
I would like to find the IP address of the visitor ISP, or something else
that can help me to find the country.
I don't know how to find it if the visitor uses a .net or .com address.
Thank you.
I'm assuming your best bet would be to find the IP using the first line of a
ping or traceroute and regex-ing out the extraneous stuff, then using
'whois -a' (which does an ARIN search) and extracting the 4th line to get
the country.
Anybody have any easier/faster ideas?
Scot R.
inSite
--
Teddy --
...and then Octavian Rasnita said...
%
% Hello all,
Hi!
%
...
% I would like to find the IP address of the visitor ISP, or something else
% that can help me to find the country.
That's easy; just use %ENV{REMOTE_ADDR} as Apache hands it to you.
HTH HAND
:-D
--
David T-G
Scot Robnett wrote:
I'm assuming your best bet would be to find the IP using the first line of a
ping or traceroute and regex-ing out the extraneous stuff, then using
'whois -a' (which does an ARIN search) and extracting the 4th line to get
the country.
Anybody have any easier/faster
Octavian == Octavian Rasnita [EMAIL PROTECTED] writes:
Octavian Is it possible to find out the country of my web page
Octavian visitors using a Perl script?
Octavian I would like to find the IP address of the visitor ISP, or
Octavian something else that can help me to find the country.
If
Randal L. Schwartz wrote:
If you're using it to force the language of the page, no. Use the
browser specification instead.
thanks v. much for that Randal, but *how* ?
how i can use the browser specification?
--
Hytham Shehab
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional