Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

How To find out Visitors IP ADDRESS using PHP

How To find out Visitors IP ADDRESS using PHP

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 .Codding:

<!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”;


0 0 votes
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments
Do you have any Query / Suggestion