去评论
dz插件网

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

哥斯拉
2024/08/04 10:18:52
  1. {  "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",}

demo中:cf-connecting-ip为优选ip x-real-ip 为cf访问源站的ip

至于真正的请求发起者ip 是获取不到的吗?