IP tracer/lookup CMS

Discussion in 'Content Management System' started by rijans, May 28, 2011.

  1. rijans

    rijans New Member

    Joined:
    Jul 8, 2010
    Messages:
    40
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Cloud Server
    Home Page:
    http://www.techgainer.com
    Is there any CMS or PHP framework exist which will help me to make a IP checker website like whatismyipaddress.com :confused:
     
  2. pein87

    pein87 Active Member

    Joined:
    Aug 6, 2010
    Messages:
    173
    Likes Received:
    47
    Trophy Points:
    28
    Occupation:
    Web Dev
    Location:
    Limbo
    PHP:
    <?php
    $userData 
    = array('ip' => $_SERVER['REMOTE_ADDR'],'port_short' => substr($_SERVER['REMOTE_PORT'],0,2),'host' => gethostbyaddr($_SERVER['REMOTE_ADDR']),'browser_raw' => $_SERVER['HTTP_USER_AGENT'],'port_full' => $_SERVER['REMOTE_PORT']);
    ?>
    you can style this code and make it sexy but this is the underlining code used for ip chicken clones.

    example usage
    PHP:
    <?php
    include("ipclone.php");
    echo 
    "IP: " $userData['ip'] . "<br />" "Port: " $userData['port_short'] . "<br />" "Host: " $userData['host'] . "<br />" "Browser: " $userData['browser_raw'];
    ?>
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice