Geoip redirect by country codes but exclude a client with dynamic ip

Hello,

The site has geoip redirection to subdomains using country codes, before
we only needed to exclude a directory from redirection but now my client
is asking me to exclude himself from it, how can I do this ?

Please note that his ip is dynamic, thanks for any help.

Posted at Nginx Forum:

Just an update, I used a custom user-agent to disable redirect for the
client, there is a plugin for firefox that allows to use custom
user-agents so he selects it and redirection stops, a simple if
statement in nginx config is applied for this purpose.

Posted at Nginx Forum:

Hi,

If your only data is a dynamic IP, then i guess you’d have to rely on
the user agent. You might be able to replace that if-statement, what
are you using?

Cheers,
Nuno


Mars 2 Stay!

/etc

Hi,

Its

if ( $http_user_agent = “BLABLA” ){
break;
}

Thanks for the reply.

Posted at Nginx Forum: