View Single Post
Old 15-12-2005, 15:12   #30
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: [Solved] Proxies

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
Graham M is offline   Reply With Quote