I am after a small PHP code snippet that will allow me to switch pieces of code according to whether the IP address is inside or outside the UK...
Problem is it needs to work within wordptress
This ideally should be either within a post, or
(less good) possibly hacked in to switch between blogs....
The point is I want to offer UK and non UK two different product streams... so switch between two completely different pieces of underlying viral sign up code/ viral listbuildsers
Any ideas???
It will look a bit naf to have UK or non UK buttons to switch...
The main problem you will face is identifying accurately where the IP is located. So if your IP was from China say does it go into the UK or US version? This means you will have to know the location of every IP and decide where it should go, a task in itself.
Secondly is an accuracy issue. Most IP locators are reasonably accurate but some ISPs (like AOHell) bugger this up and most AOL users will appear at first as US users.
www.maxmind.com do a very good IP geolocation service that is pretty accurate but I can't help thinking it would be easier to have .com and a .uk domain, two separate installs and optimise each one to target te specific country.
I do indeed have both domains.....and have the viral engines already set up on both.
What I want to do , is offer physical products to those in the UK which I do not want remote users to see.....and only downloads to those further afield - it isnt as simple as a shopping cart, because the monetization and products are hosted on remote affiliate sites.
Since the top layer of these sites is a blog, dont want to duplicate the content, so at some level I have to filter into two separate lists,
The difficulty is that what will prime these viral engines are JVs with lists which are not geo targetted - so I want to try to filter the UK = because the phyiscal products are higher margin ( and better value)
The offer mechanism is so deep in the viral code, I cant subselect down there, so in essence I am trying to keep my UK and rest of world lists separate...
re aol.... I though all the US stuff concentrated in virginia, but the UK IPS were somewhere like bridgnorth??
Is the site you mentioned a code snippet that I can use in wordpress?