摘要:
目前網上流行的所謂“取真實IP地址”的方法,都有bug,沒有考慮到多層透明代理的情況。 多數代碼類似:stringIpAddress=(HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]!=null&&HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]!=String.Empty)?HttpContext.Current.Request.ServerVariables[&q 閱讀全文
posted @ 2011-04-21 18:04
搏擊的小船
閱讀(1978)
評論(2)
推薦(0)
浙公網安備 33010602011771號