I've got a little php script setup to randomly switch between three ads. One of these ads is global but the other two are for amazon.com and amazon.co.uk and I was thinking it might be better to ensure that amazon.co.uk only gets shown to visitors from the UK. Is this a doable check in php? What I have right now is this: