Answer the question
In order to leave comments, you need to log in
Blocking a site by country, how?
Tell me please. It is necessary to prohibit access to the site to all countries except Russia and the CIS. How can this be done? Ideally, when visiting a site from Europe, a person should be redirected to another domain.
Engine on php + mysql, server on apache + nginx
Answer the question
In order to leave comments, you need to log in
use, for example, geobaza.ru/ru/download/ to determine the country by ip-address
api on php implemented
A big request, help set up a redirect and country blocking through .htaccess.
I tried this code, after applying the error 500 was received ...
GeoIPEnable On
SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry
Deny from env=BlockCountry
(CN - China)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question