What is my IP PHP Script - IP Checker PHP Script

This is how to make a simple what is my ip website. This code will show the visitors IP address. It is very simple to apply this code to your website. I have made a left and a center position for this script. You can change the font style but please dont change the php code.  Read the instructions below on how to install this script.

You can change color="#FF3300" to color="yourcolor"  by choosing a web safe color from here http://www.december.com/html/spec/colorsafe.html

You can change face="courier"  to  face="yourfont" by choosing a web safe font from here
http://www.angelfire.com/fl5/html-tutorial/fontlist.htm

You can change size="3"  to size="yourfontsize"

Center position
<font size="3" color="#FF3300" face="courier">
<?php
####################################################
# whatismyip-address.blogspot.com                  #
# Please do not change anything inside the php code#
####################################################
$ip = getenv("REMOTE_ADDR") ;
Echo "<center>Your <a style='text-decoration:none' href='http://whatismyip-address.blogspot.com'>IP</a> is";
Echo "<br />";
Echo $ip . "</center>" ;
?>
</font>

Left position
<font size="3" color="#FF3300" face="courier">
<?php
####################################################
# whatismyip-address.blogspot.com                  #
# Please do not change anything inside the php code#
####################################################
$ip = getenv("REMOTE_ADDR") ;
Echo "Your <a style='text-decoration:none' href='http://whatismyip-address.blogspot.com'>IP</a> is";
Echo "<br />";
Echo $ip;
?>
</font>

Instructions:
Step 1: Choose a file with a .php extension open it and copy one of the codes above.
Step 2: Place the code anywhere between the body tags like this.

<html>
<head>
</head>
<body>
Place php code anywhere here
</body>
</html>

Step 3: Click save. Your Done!

5 comments:

  1. Thanks for this! It was very easy to apply.

    ReplyDelete
  2. This does not work on blogger. I used this one instead Link

    ReplyDelete
  3. I am changing my proxy settings and need to find my script address - do you know how

    ReplyDelete
  4. Nice article ! I would like to add php code snippet to find an ip address :

    $ip=$_SERVER['REMOTE_ADDR'];
    echo "IP address= $ip";

    If you want to know your static ip address, use Ip-details.com

    ReplyDelete
  5. To protect yourself on the internet kindly check What is My IP Tools for your security.

    ReplyDelete