《資訊》於網頁內顯示當前之使用者 IP Address
<html>
<head>
<title>顯示使用者IP</title>
</head>
<body>
<%
' 取得使用者 IP 位址, 如果有使用 Proxy 設定則, 改變取得使用者電腦 IP 位址'
If Request.Servervariables("HTTP_X_FORWARDED_FOR") <> "" Then
ClientIP = Request.Servervariables("HTTP_X_Forwarded_For") ' 有使用 ProxyElse
ClientIP = Request.Servervariables("Remote_Addr") ' 沒有使用 ProxyEnd If
Response.Write "您使用的 IP 為 " & ClientIP
%>
</body>
</html>
[ 本帖最後由 蔡逸竹 於 2006-11-1 18:48 編輯 ]