cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect Traffic by source country

SOLVED
idealshopping
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 ACCEPTED SOLUTION

Accepted Solutions
idealshopping
New Contributor

Re: Redirect Traffic by source country

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

View solution in original post

1 REPLY 1
idealshopping
New Contributor

Re: Redirect Traffic by source country

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