Support » Plugin: Geolocation IP Detection » Create an exception?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Benjamin Pick


    Redirects are a bit tricky. I mean the exception would simply be

    if (geoip_detect_is_ip_equal(geoip_detect2_get_client_ip(), 'some IPv4 or IPv6 adress)) {

    but to do the redirect properly you probably should let the user override your decision. Easiest via menu and you could save his choice as a cookie.

    Thread Starter moonandfox


    Ok, thanks! I’m building a site for a client in Costa Rica, who wants people that are in Costa Rica to be directed to an alternate site. But, they want to be able to view the original site themselves! I think I will just have them go through a VPN to view their site.

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create an exception?’ is closed to new replies.