Use php to detect proxy. Finally, I wrote something useful! Can detect most ip addresses accessed through proxy servers .? Phpbeiji. com2000.6.17 $ ipgetenv (REMOTE_ADDR); $ vgetenv (HTTP_VIA); $ fgetenv (H finally writes something useful!
Detects most ip addresses accessed by proxy servers.
// Beiji.com 2000.6.17
$ Ip = getenv ("REMOTE_ADDR ");
$ V = getenv ("HTTP_VIA ");
$ F = getenv ("HTTP_X_FORWARDED_FOR ");
$ C = getenv ("HTTP_XROXY_CONNECTION ");
$ O = getenv ("HTTP_PRAGMA ");
Print'
REMOTE_ADDR ';
Print $ ip;
If ($ v = "") & ($ f = ") & ($ c = "") & ($ o = "")){
Print"
Not through proxy ";
}
Else {
Print"
Through proxy ";
Print'
Http_via: '; print $ v;
Print'
Http_x_forwarded_for: '; print $ f;
Print'
Http_xroxy_connection: '; print $ c;
Print'
Http_pragma: '; print $ o;
}
?>
Success! Can detect most ip addresses accessed through proxy servers .? Php // beiji. com2000.6.17 $ ip = getenv (REMOTE_ADDR); $ v = getenv (HTTP_VIA); $ f = getenv (H...