Write user's IP

xiaoxiao2021-03-06  61

<% Ip = request.servervariables ("http_x_forwarded_for") if ip = "" "" remote_addr ") 'ip = request.servervariables (" remote_addr ")' response.write (ip)%>

<% Set fso = server.createObject ("scripting.filesystemObject") set f = fso.opentextfile (Server.MAppath ("IP.TXT"), 8, TRUE) 'parameter 2, write; 8, append F.WriteLine (IP & "Access Time:" & now ()) f.closset f = NothingSet Fso = Nothing'Response.write ("Test")%>

转载请注明原文地址:https://www.9cbs.com/read-119809.html

New Post(0)