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.
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 fromX-Forwarded-For
. The simpler way is to useX-Real-IP
header that always a single IP value and provided either by Traefik and in cloud.