• Resolved fordiy

    (@fordiy)


    My address is located in Australia, but it is recognized as being in Canada. Additionally, the Cloudflare IP addresses detection are incorrect.

    • This topic was modified 2 weeks, 5 days ago by fordiy.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Ben Sibley

    (@bensibley)

    Hi there,

    Thanks for using Independent Analytics!

    These are the headers that IA checks, in this order:

    • HTTP_X_FORWARDED_FOR
    • HTTP_X_FORWARDED
    • HTTP_FORWARDED_FOR
    • HTTP_FORWARDED
    • REMOTE_ADDR
    • HTTP_CF_CONNECTING_IP
    • HTTP_CLIENT_IP
    • HTTP_INCAP_CLIENT_IP
    • HTTP_CF_CONNECTING_IP

    It sounds like one of these could be returning the location of the CDN or server, rather than your location. If you have a custom configuration, we have an easy way to supply a custom header instead: https://independentwp.com/knowledgebase/developer/detect-ip-address-custom-headers/

    That will allow you to use a different header to get the proper IP address from the visitor.

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