Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

needed : an ip logger in VBscript

Status
Not open for further replies.

abhayrao

Technical User
Nov 5, 2002
16
0
0
IN
Can someone please please please pleeeeeeaaaaaase make an ip logger(those scripts that record visitor information such as domain name,ip address,etc) to your for me ?
I have trying a lot but i am not seeming to get it. Clould someone please give me the code for an ip logger?
pleeeeeaaaaase help me!
 
how are you wanting to do this? javascript, client vbscript (not recommended), ASP

I wrote this up for you in asp if you have support
<%@ Language=VBScript %>

<html>
<body>

<%
'the following requests retrieve the IP address, the referring link, time, date, and the remote host
vip=Request.ServerVariables(&quot;REMOTE_ADDR&quot;)
vrefer=Request.ServerVariables(&quot;HTTP_REFERER&quot;) & Request.ServerVariables(&quot;URL&quot;)
vtime=time
vdate=date
vhost=Request.ServerVariables(&quot;REMOTE_HOST&quot;)
response.write &quot;Site stat's<br>&quot;
response.write &quot;<table><tr>&quot;
response.write &quot;<td>&quot; & vip & &quot;</td></tr>&quot;
response.write &quot;<td>&quot; & vrefer & &quot;</td></tr>&quot;
response.write &quot;<td>&quot; & vtime & &quot;</td></tr>&quot;
response.write &quot;<td>&quot; & vdate & &quot;</td></tr>&quot;
response.write &quot;<td>&quot; & vhost & &quot;</td></tr>&quot;
response.write &quot;</tr>&quot;
%>
</body>
</html> Was it something I said?
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top