On 11/01/2012, at 10:57 PM, Simon Lyall wrote:
I guess I could GEOlookup a few 1000 HTTP requests a second [1] and redirect the idiots to www.imreallyinnewzealand.mydomain.co.nz but that would just confuse people. Sure Google do something like that but they get to spread their costs over a lot more users.
They also only do it for stuff their GGC CDN handles, which is Youtube video and other things where the URLs aren't in an address bar, like (I think) map tiles. Once you do the initial lookup you can cache it for the duration of the session, I don't imagine the load would be that much higher if done intelligently. You also only need to do it within code that generates HTML, assuming you do that dynamically[1]. You could even store it in a cookie with a lifetime of an hour or so, so you don't have to look it up if the customer thinks they already know where they are. Of course, you only have to GeoIP the stuff you consider to be NZ vs. the stuff you consider to be non-NZ - unless you have servers in other places. That's a fairly small prefix list that you have to hit once per cookie lifetime, so, it's a fair bit easier than I suspect you're imagining. [1] this appears to be the flaw in this plan here. -- Nathan Ward