You must validate who is sending the "real ip" header. If it is Cloudflare or a http aware loadbalancer, Great!@Xon, that made no sense to me at all. I'm not very technical. Could you try to explain it so that a newbie like me understands it?
Why use CF-Connecting-IP? It does not make sense. Not to mention that they always change the IP addresses...That will allow any visitor bypassing CloudFlare to set the sender IP and requires that CloudFlare is replacing that header and not adding it.
You must validate that the upstream IP matches a CloudFlare IP before you accept that header: https://support.cloudflare.com/hc/e...6-Does-CloudFlare-have-an-IP-module-for-Nginx-
Why use CF-Connecting-IP? It does not make sense. Not to mention that they always change the IP addresses...
We use essential cookies to make this site work, and optional cookies to enhance your experience.