programming-examples/asp/More_Code_Snippets/Log a visitors IP address in a text file.asp

10 lines
273 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<%
IPAddress=Request.ServerVariables ("REMOTE_ADDR")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("c:\log.txt", forappending)
objFile.WriteLine (IPAddress)
objFile.close
Set objFile=nothing
Set objFSO=nothing
%>