Switch to full style
ASP/ASP.net examples
Post a reply

log visitor IP address.

Wed Mar 30, 2011 11:35 pm

Following code log visitor IP adress in a text file.
Code:
<% 
IPAddress
=Request.ServerVariables ("REMOTE_ADDR") 
Set objFileStream
= CreateObject("Scripting.FileSystemObject")
Set objFileObject= objFileStream.OpenTextFile("c:\codemiles\ipaddress.txt", forappending) 
objFileObject
.WriteLine (IPAddress)

objFileObject.close 
Set objFileObject
=nothing 
Set objFileStream
=nothing
%>
 




Post a reply
  Related Posts  to : log visitor IP address.
 ban visitor from a specific IP-address     -  
 Display Visitor's Local Time (IPv6 supported)     -  
 what is MAC address     -  
 Get IP address code     -  
 Find MAC Address     -  
 change the MAC address     -  
 Get Server address     -  
 validate email address in asp     -  
 How to get the weather forecast using IP address     -  
 Address Book in Java     -  

Topic Tags

ASP Files and I/O