title: How can I get the clients IP address from HTTP headers?
body: <p>I understand it's a standard practice to look at both these variables. Of course they can easily be spoofed. I'm curious how often can you expect these values (especially the <code>HTTP_X_FORWARDED_FOR</code>) to contain genuine information and not just be scrambled or have their values stripped away?</p>
  
  <p>Anyone with the experience or statistics on this stuff?</p>
  
  <p>Is there anything else that can be useful for the task of getting the client's IP address?</p>