Re: [ILUG] PHP confusion

From: John P. Looney (john at domain antefacto.com)
Date: Tue 16 Oct 2001 - 09:49:24 IST


On Tue, Oct 16, 2001 at 09:13:17AM +0100, Stephane Dudzinski mentioned:
> Hello, i know this is a bit off-topic but i can't seem to find a
> solution for this one.
>
> I've been trying to get the IP address of a client via an HTTP script
> for which i used REMOTE_ADDR which is fine if you don't use a proxy.
>
> As I use a proxy, I then tried the HTTP_X_FORWARDED_FOR which returns
> the result: unknown.

 I had a look at;
    http://www.cgsa.net/php/identifierShow.php

 and it works fine, if I go direct, but not if I go through our Squid
proxy. Is there a Squid option to allow that HTTP_X_FORWARDED_FOR setting
?

Kate

-- 
_______________________________________
John Looney             Chief Scientist
a n t e f a c t o     t: +353 1 8586004
www.antefacto.com     f: +353 1 8586014


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:45 GMT