Click to See Complete Forum and Search --> : log visitor ip address?


c21h30o2
03-19-2006, 07:54 PM
can anybody tell me how to setup a simple web page that logs the ip address of each visitor and the time they visited?

Can this be done with a simple html script?


Thanks for any help :)

NogDog
03-19-2006, 08:14 PM
...
Can this be done with a simple html script?

No, it will require some sort of server-side programming.

ray326
03-19-2006, 10:20 PM
Actually your server is already doing that for you. All you need to do is examine the "access log."

Bytes
03-20-2006, 12:21 AM
I'm not sure if this will help your cause and serve your needs, but give this JavaScript code a try, perhaps:

<script language="javascript">
<!--
var where = document.referrer
var name = navigator.appName
var vers = navigator.appVersion

document.write("<FONT COLOR=black><FONT SIZE=2>...and you came here via <BR>"+where+" <BR> "+name+" "+vers+"<BR></FONT></FONT>")
// -->

</script>You can change the Font color, size, and text of the message

Place this aforementioned script in the <Head> of your document.

Regards,

Tweak4
03-21-2006, 11:08 AM
All the above script would do is tell you your own information, which you should already know anyway. I would assume the point of this whole exercise would be to access the information about other people who have visited the site, in which case, this would do nothing.
But like Ray said, your server is probably already tracking a lot of this information- you just need to get to it...

sia123
03-21-2006, 12:23 PM
on http://hosted-scripts.com/
sia xcx