• Resolved yankovtony

    (@yankovtony)


    Hello! I have a problem with detecting incoming IP users. I saw other questions on the forum with the same questions, but just changing the settings “How Wordfence gets IP addresses” didn’t help me.

    My traffic goes through a proxy, after changing the parameter to “HTTP header X-Forwarded-For”, the firewall receives information about my original address and proxy address.
    But for some reason the proxy is chosen as the main one. How to fix it?

    • This topic was modified 1 year, 2 months ago by yankovtony.
    • This topic was modified 1 year, 2 months ago by yankovtony.
    • This topic was modified 1 year, 2 months ago by yankovtony.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Adi

    (@publiushadrianus)

    if web server is Apache, look into the mod_remoteip configuration
    https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html

    when configured correctly then Apache will take care of providing the correct remote address to php – and to Wordfence too, but make sure the list for RemoteIPTrustedProxy directives contains only trusted proxy IPv4/IPv6 addresses.

    Plugin Support wfpeter

    (@wfpeter)

    Hi @yankovtony, thanks for your question.

    In cases where multiple, comma-separated IPs are being detected in your “X-Forwarded-For”, provided one of them is your actual IP address, you can click on the text link “+Edit trusted proxies” and add the other one(s) there to exclude them from being detected as the visitor IP by mistake.

    Let us know if that resolves the IPs for incoming users for you,
    Peter.

    Thread Starter yankovtony

    (@yankovtony)

    thank u! its work!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Incorrect IP addresses detected’ is closed to new replies.