krionix Posted June 20, 2003 Posted June 20, 2003 It didn't show ip behind the proxy !! now it does ! // Get Ip Address // WAS: // $rmtIP = $REMOTE_ADDR; $proxy = array("REMOTE_ADDR", "HTTP_X_COMING_FROM", "HTTP_X_FORWARDED_FOR", "HTTP_COMING_FROM", "HTTP_FORWARDED_FOR", "CLIENT_IP", "HTTP_FROM"); $PROXY_REMOTE_ADDR = ""; do { if(isset($_SERVER[$val]) && $_SERVER[$val] != "") { $PROXY_REMOTE_ADDR .= $_SERVER[$val].'. '; } } while(list($key,$val) = each($proxy)); //ip behind proxy $rmtIP = $PROXY_REMOTE_ADDR; P.s please help with my problem few posts below.. thank you Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.