<?php
// use this script to detect whether a user is using a
//proxy server to connect to your website.
echo "Proxy Detector
";
if(isset($HTTP_X_FORWARDED_FOR))
{
if ($HTTP_X_FORWARDED_FOR)
{
// proxy detected...
?>
Proxy Detected...
Your Actual IP Address:
<?= $HTTP_X_FORWARDED_FOR ?>
Your Proxy Server:
<?= $HTTP_VIA ?>
You Proxy I.P address: <?= $REMOTE_ADDR ?>
<?
}
}
else
{
// no proxy detected
?>
No Proxy Detected
Your Actual IP Address:
<?= $REMOTE_ADDR ?>
<?
}
?>