2x " order allow,deny " bzw. " allow from all " in einer .htaccess

GeoIPEnable OnSetEnvIf GEOIP_COUNTRY_CODE DE AllowCountrySetEnvIf GEOIP_COUNTRY_CODE AT AllowCountrySetEnvIf GEOIP_COUNTRY_CODE CH AllowCountrySetEnvIf GEOIP_COUNTRY_CODE US AllowCountryOrder deny,allowDeny from allAllow from env=AllowCountry
Das ist dein Code.

GeoIPEnable On
SetEnvIf GEOIP_COUNTRY_CODE DE AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE AT AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE CH AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
Order allow, deny #alles, was nicht freigegeben wurde, wird blockiert
Allow from env=AllowCountry #du gibst alle Länder, die du oben definiert hast, frei
Deny from 185.6.8 #du blockierst speziell noch einmal diese IP, alle weiteren erhalten jeweils eine zusätzliche Zeile darunter

Das ist der geänderte. Der einzige Unterschied ist die Reihenfolge von allow und deny.

 
erledigt! Bitte löschen!

 
Zuletzt bearbeitet von einem Moderator:
Zurück
Oben