摘要:
Uri u = context.Request.UrlReferrer;//访问来源地址string ip = context.Request.UserHostAddress;//访问来源IPstring serverHost = context.Request.Url.Host;//当前访问主机地址 string localIP=System.Configuration.ConfigurationManager.AppSettings["LocalIP"];if (u == null || u.Host.ToLower() != serverHost.ToLower(). 阅读全文