Get users IP address with PHP
I’ve found this script works best for getting the users IP address. Still spammers can mask their IP address from this.
Code (php)
-
$user_ip = $_SERVER[‘REMOTE_ADDR’];
I’ve found this script works best for getting the users IP address. Still spammers can mask their IP address from this.
You must be logged in to post a comment.