--- daniel <[EMAIL PROTECTED]> wrote:
> this is a major problem , $_SERVER['HTTP_X_FORWARDED_FOR'] should get the ip 
> being the isp proxy , but some proxies including the stupid windoze one we 
> have at work will hide the ips behind it, so its rendered useless

Your Windows proxy is not misbehaving. The presence of
$_SERVER['HTTP_X_FORWARDED_FOR'] requires that the HTTP request include a
header by the name of X-Forwarded-For, an optional header.

Also, in many cases, the point of an HTTP proxy is to protect the clients it
serves. Exposing the origin IP might not be desirable.

With Web development, unless you have complete control over the network between
your users and your Web server(s), it is best to rely on the HTTP layer only
rather than rely on information obtained from the TCP/IP layer.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to