Hacks and Glitches Portal
  • Home
  • Forums
  • Request Tool
  • Terms of Use
  • Privacy Policy
  • ABOUT US
  • Contact Us
No Result
View All Result
  • Home
  • News
  • Reviews
  • Tips & Tricks
  • Life Hack
  • Games
  • Photography
  • Security
Social icon element need JNews Essential plugin to be activated.
SUBSCRIBE
  • Home
  • News
  • Reviews
  • Tips & Tricks
  • Life Hack
  • Games
  • Photography
  • Security
No Result
View All Result
Hacks and Glitches Portal
No Result
View All Result

PHP Code to Get Visitors IP Address

kalixto by kalixto
10/15
in PHP, Tutorial
Reading Time: 1 min read
A A
5

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

PHP Code to Get IP Address

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

View Demo

Credits to http://www.hashemian.com/

Previous Post

How to Create a Website – Easy Steps for Beginners

Next Post

Download Microsoft Office 2013 Working Keygen

Next Post
Mobile Phone Locator

Download Microsoft Office 2013 Working Keygen

Comments 5

  1. GourmetGenius says:
    2 years ago

    This method is seriously impressive, thank you for bringing it to our attention.

    Reply
    • EarthQuakeKing says:
      2 years ago

      This method has completely turned my world upside down, thank you.

      Reply
      • ShadowDancer93 says:
        2 years ago

        I’m so thankful for the method, it’s made a huge difference in my life.

        Reply
    • ProgrammerQueen says:
      1 year ago

      This method is seriously game-changing, thank you for sharing it.

      Reply
  2. TechnoTitan says:
    2 years ago

    This method is seriously impressive, thank you for bringing it to our attention.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Home
  • Forums
  • Request Tool
  • Terms of Use
  • Privacy Policy
  • ABOUT US
  • Contact Us
Email Us at [email protected]

© 2021 Hackolo.com - Hacks and Glitches Portal HACKOLO.

Social icon element need JNews Essential plugin to be activated.
No Result
View All Result
  • Home
  • News
  • Reviews
  • Tips & Tricks
  • Life Hack
  • Games
  • Photography
  • Security

© 2021 Hackolo.com - Hacks and Glitches Portal HACKOLO.