Answer the question
In order to leave comments, you need to log in
How to make geotargeting for only one country?
It is necessary for users from Ukraine to show other content. Without division into cities and only Ukraine, the rest - show the main site.
How to implement this with PHP? Maybe somewhere there is a database of subnets only in Ukraine or are there any other methods?
Answer the question
In order to leave comments, you need to log in
sypex geo if you don't want or can't mess with Apache
There is mod_geoip for Apache. The module will expose an environment variable available in PHP.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question