what i do , is block every country except tier 1
usa
cannda
uk
scotland
aus
the rest are crap not worth it my opioion only .
code
<ifModule mod_geoip.c>
GeoIPEnable On
# Put countries to allow here
SetEnvIf GEOIP_COUNTRY_CODE GB AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE AU AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE CA AllowCountry
Deny from all
Allow from env=AllowCountry
</ifModule>
here my resources ...
https://help.crucial.com.au/hc/en-g...ock-IP-Addresses-and-Countries-using-htaccess
you need to install geoip
https://matomo.org/faq/how-to/faq_165/
might find it easer this way to install
https://www.pickaweb.co.uk/kb/how-t...centos-server-via-command-line-and-cpanelwhm/
know you can block all the crappy non used traffic not needed.(( correct way))
you can got your host to add the goip for you aswell good luck.
if your learning php then there a diffrent way here it is , last comment and code example at bottom of page.
https://stackoverflow.com/questions...try-except-the-uk-and-allow-all-non-eu-countr
what ever you do good luck.