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![]()
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![]()
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
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].Originally Posted by whoo59
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.
You're more than welcome to this PHP code I have on my server though:
If it's of any use.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");
?>
cr3ative
A retired member, drop me a line through my site if you'd like to find me!
cr3ative media | read the stickies
Bookmarks