I got perl script with solution,but i need php version.
PHP Code:
if (
$ENV{HTTP_X_FORWARDED_FOR} ||
$ENV{HTTP_VIA} ||
$ENV{HTTP_CACHE_CONTROL} ||
$ENV{HTTP_PROXY_CONNECTION}
) {
print "<script>document.location = 'http://';</script >";
#proxy traff
} else {
print "<script>document.location = 'http://';</script >";