Results 1 to 5 of 5

Thread: i need the code for an ip and browser tracker??

  1. #1
    Join Date
    Feb 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question i need the code for an ip and browser tracker??

    i no ive seen the code before for a image that displayed the viewers os, browser, ip adress, and system if anyone knows any code please help me im pretty good with html but this has confused me

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Do you own or have a good server? This request could be easily dealt with using PHP or other server-side functions.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Feb 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation

    i dont have a server but ive deffinetly seen this thing before and it wasin all HTML

  4. #4
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by whoo59
    i dont have a server but ive deffinetly seen this thing before and it wasin all HTML
    No, it wasn't. HTML doesn't "do" anything so it is simply not possible for HTML to obtain information about a HTTP request. What you saw was some form of server-side process which returned, in its output, a document containing an IP address[1].

    Mike


    [1] It should be noted that an IP address found in a request header is not necessarily accurate. Proxies can, and do, alter this information when they forward a request.

  5. #5
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You're more than welcome to this PHP code I have on my server though:

    PHP Code:
    <?php
    $ip 
    = (isset($_SERVER)) ? $_SERVER['REMOTE_ADDR'] : $HTTP_SERVER_VARS['REMOTE_ADDR'];
    $host gethostbyaddr($_SERVER['REMOTE_ADDR']);
    $CurrentDate date("m-d-Y h:ia");
    $Ref$_SERVER['HTTP_REFERER'];
    $Bro$_SERVER['HTTP_USER_AGENT'];
    $user = (empty($_REQUEST['name'])) ? '' $_REQUEST['name'];
    echo(
    '<br><b>Access Time</b> : '.$CurrentDate.'<br><b>User / IP</b> :  '.$user.' '.$ip.'<a href="http://lookup.ws/whois/show_whois.php?domain='.$ip.'"> (whois)</a><br><b>Referred by</b> : <a href='.$Ref.' >'.$Ref.'</a><br><b>Browser </b>: '.$Bro.'<br><b>Remote Host [if avaliable] </b>: '.$host"<br /><br>\n");
    ?>
    If it's of any use.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •