Split testing or blocking certain countries

by 3 replies
4
Greetings,

I was wondering if there was someway to have people from different countries who visit my website land on a different page then people from the US?
#website design #blocking #countries #split
  • Hi
    If the page is made in php, you need a database with the range of IPs which are from the US (maybe it can be found on the net). Then, to each vizit, get the visitor's IP and make a Select to check if that IP is in database.
    If it is database, open the page for people from the US, otherwise, a different page.
  • You can simply use a geo-redirecting script?
    • [1] reply
    • You may either maintain your own IP country database or subscribe 3rd party API to get the country based on IP address and redirect the destination accordingly.

      You may check this website for details and sample implementation: ip2location

Next Topics on Trending Feed