• Resolved stanley1789

    (@stanley1789)


    Hi,

    For most countries, redirection works but for some countries redirection not working(Guatemala, Indonesia…).

    Also, the plugin not working for all US states.

    For example, if I set the United States as the location it will work for most states but for some, it doesn’t.
    It will work in California but not in Maryland.

    Maybe something needs to be done with the database so that the redirect will work for the mentioned countries as well?

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

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

    (@ip2location)

    Please enable the “Debugging Log” in the plugin settings. Then, visit your website to trigger the not working condition. Check the “debug.log” generated in the plugin folder to further details.

    Thread Starter stanley1789

    (@stanley1789)

    Something strange is happening with the plugin and country codes and IP address locations.

    The plugin recognized an IP address from America as if it were from Germany.
    When you check Ip address 98.159.224.46 on https://www.whatismyip.com/ip-address-lookup/ it shows two results.
    1.
    City: Isenburg
    State/Region: Rheinland-Pfalz
    Country: DE
    IP2Location.com Results

    2.
    City: Edison
    State/Region: New Jersey
    Country: United States
    ipdata.co Results

    And then when you go to IP2Location.com to check it again it shows second result.
    For Guatemala it showing CA country code.

    USA ABORTED
    {“time”:”2022-11-24 09:57:52″,”client_ip”:”98.159.224.46″,”location”:”DE”,”lookup_by”:”BIN”,”cache”:false,”uri”:”https:\/\/staging-devtech-staging.kinsta.cloud\/projects-dashboard\/”,”message”:”\”DE\” is NOT listed in [DZ, CR, FR, GT, ID, KE, MA, NI, PA, SG, US]”,”action”:”ABORTED”}

    {“time”:”2022-11-24 09:58:09″,”client_ip”:”98.159.224.46″,”location”:”DE”,”lookup_by”:”Cache”,”cache”:true,”uri”:”https:\/\/staging-devtech-staging.kinsta.cloud\/projects-dashboard\/”,”message”:”\”DE\” is NOT listed in [DZ, CR, FR, GT, ID, KE, MA, NI, PA, SG, US]”,”action”:”ABORTED”}

    Guatemala ABORTED
    {“time”:”2022-11-24 09:32:31″,”client_ip”:”173.244.55.66″,”location”:”CA”,”lookup_by”:”Cache”,”cache”:true,”uri”:”https:\/\/staging-devtech-staging.kinsta.cloud\/projects-dashboard\/”,”message”:”\”CA\” is NOT listed in [DZ, CR, FR, GT, ID, KE, MA, NI, PA, SG, US]”,”action”:”ABORTED”}

    Algeria REDIRECTED
    {“time”:”2022-11-24 09:52:01″,”client_ip”:”45.130.203.155″,”location”:”DZ”,”lookup_by”:”BIN”,”cache”:false,”uri”:”https:\/\/staging-devtech-staging.kinsta.cloud\/projects-dashboard\/”,”message”:”\”DZ\” is listed in [DZ, CR, FR, GT, ID, KE, MA, NI, PA, SG, US]”,”action”:”MATCHED”}

    {“time”:”2022-11-24 09:52:01″,”client_ip”:”45.130.203.155″,”location”:”DZ”,”lookup_by”:”BIN”,”cache”:false,”uri”:”https:\/\/staging-devtech-staging.kinsta.cloud\/projects-dashboard\/”,”message”:”Destination: https:\/\/staging-devtech-staging.kinsta.cloud\/projects\/the-actual-cuban-exchange-rate-dashboard\/”,”action”:”REDIRECTED”}

    USA REDIRECTED
    {“time”:”2022-11-24 09:47:23″,”client_ip”:”173.239.204.61″,”location”:”US”,”lookup_by”:”Cache”,”cache”:true,”uri”:”https:\/\/staging-devtech-staging.kinsta.cloud\/projects-dashboard\/”,”message”:”\”US\” is listed in [DZ, CR, FR, GT, ID, KE, MA, NI, PA, SG, US]”,”action”:”MATCHED”}

    {“time”:”2022-11-24 09:47:23″,”client_ip”:”173.239.204.61″,”location”:”US”,”lookup_by”:”Cache”,”cache”:true,”uri”:”https:\/\/staging-devtech-staging.kinsta.cloud\/projects-dashboard\/”,”message”:”Destination: https:\/\/staging-devtech-staging.kinsta.cloud\/projects\/the-actual-cuban-exchange-rate-dashboard\/”,”action”:”REDIRECTED”}

    Plugin Author ip2location

    (@ip2location)

    Your IP2Location BIN database is out of date. Please update it in your plugin settings page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘For specific countries redirection not working’ is closed to new replies.