當前位置:首頁 » 密碼管理 » 如何獲取訪問者ip

如何獲取訪問者ip

發布時間: 2025-05-02 14:41:28

① asp中怎樣獲取訪問者的IP地址

ip = request.servervariables("remote_addr") '獲取訪問者的ip
now_time = now '獲取登陸時間(伺服器時間)

完整的代碼如下
dim
conn,rs,ip,now_time
set
conn=server.createobject("adodb.connection")
dbpath =
server.mappath("資料庫路徑")
conn.open "driver={microsoft access driver
(*.mdb)};dbq=" & dbpath
set
rs=server.createobject("adodb.recordset")
sql = "表名"
rs.open
sql,conn,3,2
rs.addnew
ip = request.servervariables("remote_addr")
'獲取訪問者的ip
now_time = now '獲取登陸時間(伺服器時間)
rs("欄位名1") = ip
rs("欄位名2") = now_time
rs.update

熱點內容
光遇安卓官服如何共號 發布:2025-06-17 10:32:37 瀏覽:170
為什麼說保險是動態配置 發布:2025-06-17 10:23:08 瀏覽:311
怎樣查看自己的車是什麼配置 發布:2025-06-17 10:17:53 瀏覽:20
堆棧加密 發布:2025-06-17 10:17:00 瀏覽:986
ftp文件刪除不了文件 發布:2025-06-17 10:05:33 瀏覽:618
旋轉輪胎怎麼解壓 發布:2025-06-17 09:58:54 瀏覽:6
最新壓縮軟體 發布:2025-06-17 09:58:06 瀏覽:493
進去linux了 發布:2025-06-17 09:55:37 瀏覽:407
nginx編譯https 發布:2025-06-17 09:55:32 瀏覽:484
安卓充電介面分什麼類型 發布:2025-06-17 09:54:03 瀏覽:659