Mailing List Archive

fetch IP.
hi,

I'm also looking to fetch a visitor's IP just as apache does in it's log.
Can this be done with mod_perl?

j.
RE: fetch IP. [ In reply to ]
> hi,
>
> I'm also looking to fetch a visitor's IP just as apache does in it's log.
> Can this be done with mod_perl?

$r->connection->remote_ip

or $ENV{REMOTE_ADDR} if you're looking for CGI compatibility.

--
Eric
Re: fetch IP. [ In reply to ]
my $ip_addr = $r->connection->remote_ip;

Jason C. Leach (jleach@mail.ocis.net) wrote:
> hi,
>
> I'm also looking to fetch a visitor's IP just as apache does in it's log.
> Can this be done with mod_perl?
>
> j.

--
Cole's Law: Thinly sliced cabbage.