Closed lord-alfred closed 5 years ago
I'm unclear what problem you have and what the proposed solution is.
Can you propose a specific thing that you want me to change that will solve your problem?
If you use the wrong order of headers, then the first will be taken incorrect value for such sites (cloudflare driven).
I use this order of headers:
'CF-Connecting-IP',
'True-Client-IP',
'X-Real-IP',
'Forwarded',
'X-Forwarded-For',
'X-Forwarded',
'X-Cluster-Client-Ip',
'Client-Ip',
Thanks!
https://support.cloudflare.com/hc/en-us/articles/200170986-How-does-Cloudflare-handle-HTTP-Request-headers- + https://stackoverflow.com/questions/17540715/using-curl-i-added-the-header-http-x-real-ip-on-the-server-side-it-becomes-h
And I dont know, but current order in
$headersToInspect
maybe wrong.