摘要: CDN 环境下获取用户IP方法 1 cdn 自定义header头的X-Real-IP,在后端使用$http_x_real_ip获得 proxy_set_header X-Real-IP $remote_addr 这种方法简单有效准确. 2 cdn一般都会使用自定义字段X-Forwarded-For记 阅读全文
posted @ 2017-05-25 17:21 weelin_area 阅读(957) 评论(0) 推荐(1) 编辑