wodby / varnish

Varnish docker container image
https://wodby.com/stacks/varnish
MIT License
59 stars 29 forks source link

Detect country code against X-Real-IP header instead of X-Forwarded-For #18

Closed pprishchepa closed 5 years ago

pprishchepa commented 5 years ago

Detection of country code doesn't work if more than 2 IPs in X-Forwarded-For. Also, we should know a list of trusted proxies to securely detect real client's IP from X-Forwarded-For. The simpler way is to use X-Real-IP header that always a single IP value and provided either by Traefik and in cloud.