大佬们,使用CloudFlare SAAS 优选后 源站获取不到客户端真实Ip

查看 40|回复 0
作者:GoogleX   
[ol]{
  "ip": "8.218.223.13",
  "headers": {
    "x-forwarded-for": "8.218.223.13, 172.71.214.31",
    "x-real-ip": "172.71.214.31",
    "connection": "upgrade",
    "x-forwarded-proto": "https",
    "cdn-loop": "cloudflare",
    "cf-ipcountry": "HK",
    "accept-encoding": "gzip, br",
    "cf-ray": "8ad970a5390c044d-HKG",
    "cf-visitor": "{"scheme":"https"}",
    "cf-connecting-ip": "8.218.223.13",
}[/ol]复制代码
demo中:cf-connecting-ip为优选ip x-real-ip 为cf访问源站的ip
至于真正的请求发起者ip 是获取不到的吗?

发起者, 客户端, 代码

您需要登录后才可以回帖 登录 | 立即注册

返回顶部