RE: [PHP] preg_match help
| From: | Dan Rossi | Date: | Fri, 11 Apr 2003 14:18:57 +0000 |
| Subject: | RE: [PHP] preg_match help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143492@lists.php.net to get a copy of this message | ||
i think we have discussed this before unfortunately some proxies are non
transparent they will not show the HTTP_X_FORWARDED_FOR
-----Original Message-----
From: Pavel Jartsev [mailto:papi@digitalfruit.ee]
Sent: Friday, April 11, 2003 9:28 PM
To: Petre Agenbag
Cc: php-general@lists.php.net
Subject: Re: [PHP] preg_match help
Petre Agenbag wrote:
> Hi
>
> I am trying to do the following:
>
>>From the machine at work connected via ADSL running through a proxy, I'd
> like to "send" the gateway Linux machine IP to my webserver. I used to
> simply make the gateway access a hidden page on the webserver and then
> got the IP from the $_SERVER['REMOTE_ADDR'], but since the ISP forced
> the connection through a proxy, that doesn't work anymore.
> ...
>
I'm not 100% sure what U're trying to do, but it's possible to get an IP
address of client behind proxy from this variable:
$_SERVER['HTTP_X_FORWARDED_FOR']
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php