摘要:        
#region 获取客户端真实IP public static string ClientIP(this Controller ctrl) { string userip = ""; // 如果客户端用了代理服务器,则应该用ServerVariables("HTTP_X_FORWARDED_FOR")方法 if (ctrl.HttpContext.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != null) userip = ctrl.HttpContext.Request.Serv    阅读全文
        
            posted @ 2011-03-17 23:51
fumen
阅读(240)
评论(0)
推荐(0)
        
    
                    
                
                
浙公网安备 33010602011771号