开发学院WEB开发ASP 判断代理IP访问ASP页面代码 阅读

判断代理IP访问ASP页面代码

 2009-04-22 10:38:21 来源:WEB开发网   
核心提示:Dim FY_ipFY_IP=LCase(Request.ServerVariables("ALL_HTTP"))If Instr(FY_IP,"PRoxy")<>0 or Instr(FY_IP,"http_via")<>0 or I
Dim FY_ip
FY_IP=LCase(Request.ServerVariables("ALL_HTTP"))
If Instr(FY_IP,"PRoxy")<>0 or Instr(FY_IP,"http_via")<>0 or Instr(FY_IP,"http_pragma")<>0 or Request.ServerVariables("HTTP_PROXY_CONNECTION") <> "" or Request.ServerVariables("HTTP_VIA") <> "" or Request.ServerVariables("HTTP_USER_AGENT_VIA") <> "" or Request.ServerVariables("HTTP_X_FORWARDED_FOR") <> "" or Request.ServerVariables("HTTP_PROXY_CONNECTION") <> "" or Request.ServerVariables("HTTP_CACHE_CONTROL") <> "" or Request.ServerVariables("HTTP_CACHE_INFO") <> "" Then
Response.Write "代理"
Else
Response.Write "不是代理"
End If

Tags:判断 代理 IP

编辑录入:爽爽 [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接