olaf
Sat 13 October 2007, 12:39 am GMT +0200
Hi,
I found some code to check if someone is visiting your page via a proxy:
if (
$_SERVER['HTTP_X_FORWARDED_FOR']
|| $_SERVER['HTTP_X_FORWARDED']
|| $_SERVER['HTTP_FORWARDED_FOR']
|| $_SERVER['HTTP_VIA']
|| in_array($_SERVER['REMOTE_PORT'], array(8080,80,6588,8000,3128,553,554))
|| @fsockopen($_SERVER['REMOTE_ADDR'], 80, $errno, $errstr, 30))
{
exit('Proxy detected');
}
?>
but it looks to me that its not working.
Actually I want that people can't submit my form if they are using a web proxy (phproxy or cgiproxy)
is this possible? I know that no headers are send with those anonymous proxies
I found some code to check if someone is visiting your page via a proxy:
if (
$_SERVER['HTTP_X_FORWARDED_FOR']
|| $_SERVER['HTTP_X_FORWARDED']
|| $_SERVER['HTTP_FORWARDED_FOR']
|| $_SERVER['HTTP_VIA']
|| in_array($_SERVER['REMOTE_PORT'], array(8080,80,6588,8000,3128,553,554))
|| @fsockopen($_SERVER['REMOTE_ADDR'], 80, $errno, $errstr, 30))
{
exit('Proxy detected');
}
?>
but it looks to me that its not working.
Actually I want that people can't submit my form if they are using a web proxy (phproxy or cgiproxy)
is this possible? I know that no headers are send with those anonymous proxies