I f you a PHP programmer then you will find it very easy to track your visitors IP Address, if someone spaming on your site you can also block him. PHP is alway easy and powerful than other scripting language lets check the whole code .
<meta charset="utf-8" />
echo "<br/>Your IP Address is ".$ip;
// suppose IP 127.0.0.1 for localhost and it redirects to prevent spam
echo "You are blocked for Spaming";
Labels: PHP, PHP Scripts