1)need to find IP range. Way we do this is we have a database storing this info with a country code assigned.
2) When user access's site it looks up there IP in table and gives a country code and stores in cookie for 20 mins to reduce server load. If for example it was "AUS" it would redirect to new address.
We had to buy the IP range table for around 99usd.
In coldfusion a Application file is looked at by every page so easy for each page to do check. Not sure if anything in PHP exists like that.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.