• Resolved nmxde

    (@nmxde)


    Hello,

    I’m running WordPress behind a proxy (Cloudflare – Traefik – NGINX – PHP-FPM).

    Simple History logs two IP-addresses per event: 192.168.160.0, 162.158.91.0, that’s some Docker internal network address and Cloudflare’s address. The user’s IP-address is missing. It would be available in the HTTP header “CF-Connecting-IP”.

    Is there a way to make it configurable which header is used to determine the user’s IP address?

    Thanks!
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author P?r Thernstr?m

    (@eskapism)

    Thanks for the report about this. I was not aware of the CF-Connecting-IP-field. I’ll see if I can add that one and if it’s possible to configure what field to use as the client ip.

    Thread Starter nmxde

    (@nmxde)

    Thanks!

    Wordfence gives these options:

    • PHP’s built in REMOTE_ADDR
    • X-Forwarded-For
    • X-Real-IP
    • CF-Connecting-IP

    To see the current value of each header/variable makes it easier to find the correct option.

    Thread Starter nmxde

    (@nmxde)

    For anyone finding this ticket: This has been solved in version 2.40. It now shows the relevant IP address as well. Thanks @eskapism!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong IP-address logged’ is closed to new replies.