PHP Code:
<?php
if(isset($_SERVER["HTTP_X_FORWARDED_FOR"]))
{
$realip = $_SERVER["HTTP_X_FORWARDED_FOR"];
$realdns = gethostbyaddr($realip);
$proxyip = $_SERVER['REMOTE_ADDR'];
$proxydns = gethostbyaddr($proxyip);
?>
<div align="center">It was detected that you are behind a proxy!</div>
<table border="0" width="300" align="center">
<tr><td><font size="2">
<b>Your Real IP Address is:</b></font></td>
<td><font size="2"><?php print $realip;?></font></td></tr>
<tr><td><font size="2">
<b>Your Real DNS is:</b></font></td>
<td><font size="2"><?php print $realdns;?></font></td></tr>
<tr><td><font size="2">
<b>Your Proxy IP Address is:</b></font></td>
<td><font size="2"><?php print $proxyip;?></font></td></tr>
<tr><td><font size="2">
<b>Your Proxy DNS is:</b></font></td>
<td><font size="2"><?php print $proxydns;?></font></td></tr>
</table>
<?php
}
else
{
$realip = $_SERVER['REMOTE_ADDR'];
$realdns = gethostbyaddr($realip);
?>
<div align="center">It was detected that you are <b>NOT </b>behind a proxy!</div>
<table border="0" width="300" align="center">
<tr><td><font size="2">
<b>Your Real IP Address is:</b></font></td>
<td><font size="2"><?php print $realip;?></font></td></tr>
<tr><td><font size="2">
<b>Your Real DNS is:</b></font></td>
<td><font size="2"><?php print $realdns;?></font></td></tr>
<?php
}
?>
---------- Post added at 15:34 ---------- Previous post was at 15:23 ----------
Oh btw you can see this in action here:
www.zeph.co.uk/abyss before you try it if you like
---------- Post added at 16:12 ---------- Previous post was at 15:34 ----------
Quote:
|
Originally Posted by Chrysalis
It is possible to avoid using any ntl proxy by using your own proxy on a non standard port.
|
I run a Squid proxy on my server in the US and incredibly it's quite often faster and more reliable than the NTL ones, I run it on port 3128 so that the NTL Proxies can't touch it