Get this useful PHP code to retrieve your visitor’s IP address. This code basically does is displaying the visitors IP address on the screen together with it’s hostname
Make sure you put this code on a .php file or if you know how to integrate php in html you may as well.
PHP CODE
<script language=”JavaScript”>
VIH_BackColor = “palegreen”;
VIH_ForeColor = “navy”;
VIH_FontPix = “16”;
VIH_DisplayFormat = “You are visiting from:<br>IP Address: %%IP%%<br>Host: %%HOST%%”;
VIH_DisplayOnPage = “yes”;
</script>
<script language=”JavaScript” src=”http://scripts.hashemian.com/js/visitorIPHOST.js.php”></script>
And here is the Demo
Credits to http://www.hashemian.com/
This method is seriously impressive, thank you for bringing it to our attention.
This method has completely turned my world upside down, thank you.
I’m so thankful for the method, it’s made a huge difference in my life.
This method is seriously game-changing, thank you for sharing it.
This method is seriously impressive, thank you for bringing it to our attention.