代码:
<% Dim clientIP clientIP = Request.ServerVariables("REMOTE_ADDR") If clientIP <> "127.0.0.1" And clientIP <> "::1" Then '不是本机的时候 %> ... <%End If%>