Weird, but I don't get the remote ip, besides the default is ON, I think,
but I turned it on anyway.
here's my code snippet in Perl:
# check all vars first
foreach $k (keys (%ENV))
{
print "$k = " . $ENV{$k} . "<br>";
}
print $ENV{"HTTP_X_FORWARDED_FOR"} . "<BR>";
On Sat, 29 Apr 2000, Miguel A.L. Paraz wrote:
> On Sat, Apr 29, 2000 at 06:39:56PM +0800, Benjamin de los Angeles Jr. wrote:
> > Does/Can squid give the remote ip which it proxies to the webserver?
> > If yes, how can the webserver get the remote IP (not Squid's)?
>
> Unless you have turned it off in squid.conf,
> it's in the X-Forwarded-For header. (Perl: $ENV{"HTTP_X_FORWARDED_FOR"})
>
> best,
> ---m
>
> --
> Work: +63-2-750-2288 IPhil Communications Makati City,
> Mobile: +63-917-810-9728 A PSINet Company Philippines
>
>
>
> -
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
>
-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]