PDA

View Full Version : i need the code for an ip and browser tracker??



whoo59
02-01-2005, 07:49 AM
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 :confused:

cr3ative
02-02-2005, 01:44 PM
Do you own or have a good server? This request could be easily dealt with using PHP or other server-side functions.

cr3ative

whoo59
02-11-2005, 04:59 PM
i dont have a server but ive deffinetly seen this thing before and it wasin all HTML

mwinter
02-11-2005, 05:39 PM
i dont have a server but ive deffinetly seen this thing before and it wasin all HTMLNo, 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.

cr3ative
02-11-2005, 05:55 PM
You're more than welcome to this PHP code I have on my server though:


<?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