前端后端获取ip以及位置以及判断客户端
摘要:
ip后端获取ip方法: private string GetIp() { string ip = ""; if (Context.Request.ServerVariables["HTTP_VIA"] != null)// 服务器变量, using proxy { ip = Context.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString(); } ... 阅读全文
posted @ 2014-02-08 16:50 来碗板面 阅读(8474) 评论(0) 推荐(0) 编辑