• Resolved andrejovdienko

    (@andrejovdienko)


    My hoster has server configuration, where real IP is HTTP_X_FORWARDED_FOR; also exists HTTP_X_REAL_IP, but it is NOT a real IP. Your plugin process HTTP_X_REAL_IP before HTTP_X_FORWARDED_FOR, so I get wrong result.

    Also, your plugin gets HTTP_X_FORWARDED_FOR or HTTP_X_REAL_IP only when REMOTE_ADDR is not correct; but at my hoster’s configuration I have REMOTE_ADDR that contains formally correct, but non-real IP.

    So, I need a hook for your get_ip() method to set arbitrary real IP, or for set non-standard real IP source, or for replace your get_ip() method.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ip2location

    (@ip2location)

    We currently do not have the option to configure IP header.

    Are you able to configure it from the server host?

    Thread Starter andrejovdienko

    (@andrejovdienko)

    No, it is shared hosting and I can’t configure server host. I had solve the problem by other way.

    But hook at get_ip() for non-standart may be useful. This is my feature request for the future.

    Plugin Author ip2location

    (@ip2location)

    Please try the latest version of the plugin which allow you choose the IP header.

    Thread Starter andrejovdienko

    (@andrejovdienko)

    Super, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.