title: Why HTTP_X_FORWARDED_FOR shows some ip address in my server
body: <p>I have put same code to find proxy server in my two different server,but one of my server is showing this is proxy server.Finally i print all server variables and i could see that it has HTTP_X_FORWARDED_FOR in HTTP header. Why this happens?</p>
  
  <p>code i used to find is </p>
  
  <pre><code>&lt;?php
  </code></pre>
  
  <p>if ($_SERVER['HTTP_X_FORWARDED_FOR'] || $_SERVER['HTTP_X_FORWARDED'] || $_SERVER['HTTP_FORWARDED_FOR'] || $_SERVER['HTTP_CLIENT_IP'] || $_SERVER['HTTP_VIA'] || in_array($_SERVER['REMOTE_PORT'],array(8080,80,6588,8000,3128,553,554)) || @fsockopen($_SERVER['REMOTE_ADDR'], 80, $errno, $errstr, 2))</p>
  
  <p>{</p>
  
  <pre><code>    echo "Proxy detected";
      //Proxy detected'
  }
  
  else
  {
      echo "Proxy not detected";
      //No Proxy detected
  }
  </code></pre>
  
  <p>?></p>