How To find out Visitors IP ADDRESS using PHP

 IP ADDRESS using PHPI 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 .


<!DOCTYPE html>
<html lang="en">
<title>IP Address</title>
<meta charset="utf-8" />
echo "<br/>Your IP Address is ".$ip;
// suppose IP for localhost and it redirects to prevent spam
echo "You are blocked for Spaming";

Labels: ,