• Hello,

    We are using this plugin, and when using HTTP_X_FORWARDED_FOR, we get 127.0.0.1 in the logs.

    Looking at this $_SERVER variable while debugging, it looks like it is set correctly, but it is displayed as 127.0.0.1.

    Thing is, we use cloudfront, which point to a load balancer, when there are serveral proxies in-between the web server, this variable holds multiple ips. The first one, is the client ip. Like this:

    X-Forwarded-For: client-ip, cloudfront-edge-ip, load-balancer-ip

    Would love to get some help on this. I guess this should be sliced, and you should take the first entry.

    Thanks,

    Rotem

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘X-Forwarded-For detected as 127.0.0.1’ is closed to new replies.