Preventing IP spoofing
<p>If I throw both of these two into a database, is that enough to prevent a site visitor from spoofing that they are coming from a different IP address?</p>

<pre><code>$ip1 = $_SERVER['HTTP_X_FORWARDED_FOR'];
$ip2 = $_SERVER['REMOTE_ADDR'];
</code></pre>
