Internationale IPs aussperren

eine gute Hilfeseite dazu ist hier:
https://briansnelson.com/How_to_block_or_allow_countries_using_GeoIP_and_.htaccess

GeoIPEnable On
SetEnvIf GEOIP_COUNTRY_CODE DE AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE AT AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE CH AllowCountry
Deny from all
Allow from env=AllowCountry

 

Wenn man ein spezielles Land nur ausklammern will, dann muss der Eintrag so lauten:

SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE RU BlockCountry
Order allow,deny
Allow from all
Deny from env=BlockCountry


Bewertung der FAQ

0 (0 Abstimmungen)