title: most reliable way to get ip address of users using php?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4686318/getting-users-real-ip-address-using-php">Getting Users Real IP address using PHP</a>  </p>
  </blockquote>
  
  
  
  <p>I want to log the ip address of anyone who visits my website using a php script to block possible spammers. Is there a surefire way to find and log anyone's real ip address or a most reliable method?</p>
  
  <p>UPDATE: my website only asks users for a password to log in, no username required. If I want to keep my current method of validation, what other methods can I use to block or deter most spammers?</p>