PDA

View Full Version : proxy or not ?


mogart
03-30-2002, 10:14 AM
how to recognize if specific IP number is proxy or not ?

keyman
03-30-2002, 07:39 PM
Try to connect to common proxy ports on that host.. 80,8080,3128. If you're daring you could also see if its really an open proxy by sending a remote GET request.

SexySites
03-30-2002, 08:26 PM
also there are certain headers which proxies use (unless they are anonymous <img border="0" title="" alt="[Big Grin]" src="biggrin.gif" /> )<br /><br />laters,<br />Chris

Slackman
03-30-2002, 09:31 PM
If you run php try something like this:<br /><br /> </font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: fixed;">if ($HTTP_SERVER_VARS[&quot;HTTP_X_FORWARDED_FOR&quot;] != &quot;&quot;)<br /><br /> {<br /> $IP = $HTTP_SERVER_VARS[&quot;HTTP_X_FORWARDED_FOR&quot;];<br /> $proxy = $HTTP_SERVER_VARS[&quot;REMOTE_ADDR&quot;];<br /> $host = @gethostbyaddr($HTTP_SERVER_VARS[&quot;HTTP_X_FORWARDED_FOR&quot;]);<br /> }else{<br /> $IP = $HTTP_SERVER_VARS[&quot;REMOTE_ADDR&quot;];<br /> $host = @gethostbyaddr($HTTP_SERVER_VARS[&quot;REMOTE_ADDR&quot;]);<br /> } </pre><hr /></blockquote><font size="2" face="Verdana, Arial">