cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect Traffic by source country

SOLVED
Highlighted
New Contributor

Redirect Traffic by source country

Is it possible to redirect http traffic based on the country the remote Ip is lcoated in?

 

ie. If the remote IP is based in say Australia redirect to a specific URL.

 

I know should be able to get the coutnry code by using geo.getCountryCode but I cannot get it to work by passing it a variable $ip derived from response.getRemoteIP.

 

Anyone done this?

1 REPLY
New Contributor

Re: Redirect Traffic by source country

ignore me Im an idiot.... should of been using request.getRemoteIP!