title: Testing user HTTP proxy using PHP script
body: <p>Welcome,</p>
  
  <p>I'm writing application what will allow me to try detect what type of HTTP proxy user have installed.</p>
  
  <p>Script calling remote server adding parameter <code>http://xxxx.php?my_ip=real_IP</code></p>
  
  <p>Here is my application:</p>
  
  <pre><code>&lt;?php
  
  /*
   * To change this template, choose Tools | Templates
   * and open the template in the editor.
   */
  
  
  $real_ip=$_GET['my_ip'];
  
  
  $ip1=$_SERVER['HTTP_X_FORWARDED_FOR'];
  $ip2=$_SERVER['HTTP_X_FORWARDED'];
  $ip3=$_SERVER['HTTP_FORWARDED_FOR'];
  $ip4=$_SERVER['HTTP_CLIENT_IP'];
  $ip5=$_SERVER['HTTP_VIA'];
  
  $ip6=$_SERVER['REMOTE_ADDR'];
  
  $ip_array[1]=$ip1;
  $ip_array[2]=$ip2;
  $ip_array[3]=$ip3;
  $ip_array[4]=$ip4;
  $ip_array[5]=$ip5;
  
  
  if($ip6==$real_ip)
  {
    echo "You are not using proxy.";  
  }
  else
  {
  
  if(in_array($real_ip, $ip_array))
  {
      echo "You are using transparent proxy with one releave your ip.";
  }
  else
  {
  
      if( $_SERVER['HTTP_X_FORWARDED_FOR']
     || $_SERVER['HTTP_X_FORWARDED']
     || $_SERVER['HTTP_FORWARDED_FOR']
     || $_SERVER['HTTP_CLIENT_IP']
     || $_SERVER['HTTP_VIA'])
      {
      echo "You are using anonymous proxy with one protect Your IP but inform www servers about using proxy";    
      }
      else
      {
      echo "You are using elite proxy, with one hide your IP and don't inform www servers about using proxy";    
      }
  
  
  }
  }
  
  
  
  
  $table=&lt;&lt;&lt;table
  
  &lt;p&gt;Ip  HTTP_X_FORWARDED_FOR FOR : $ip1&lt;/p&gt;
  &lt;p&gt;Ip  HTTP_X_FORWARDED  : $ip2&lt;/p&gt;
  &lt;p&gt;Ip  HTTP_FORWARDED_FOR FOR : $ip3&lt;/p&gt;
  &lt;p&gt;Ip  HTTP_CLIENT_IP FOR : $ip4&lt;/p&gt;
  &lt;p&gt;Ip  HTTP_VIA FOR : $ip5&lt;/p&gt;
  &lt;p&gt;Ip  remote addr  : $ip6&lt;/p&gt;
  
  table;
  echo $table;
  
  ?&gt;
  </code></pre>
  
  <p>I run some tests and application looks working very well.</p>
  
  <p>If you have any tips please tell me.</p>
  
  <p>I mean i would like know am i dont miss something important.</p>
  
  <p>Regards</p>