Hello everybody,

How can I use an nginx session or hash_ip in the server context to only do the following if statement code once and not a second time an client visits the website:

server {
    if ($geoip2_data_country_iso_code != GB) {
        return 302 https://test01.example.nl$request_uri;
    }
}

I want the above code to be executed only once, and then be remembered for the next 24 hours or so (this is flexible, not a hard requirement).

Kind regards,

Jelle de Jong
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-le...@nginx.org

Reply via email to