Blocco dell’accesso per alcuni paesi

Skip to main content
Du bist hier:
Drucken

Blocco dell’accesso per alcuni paesi

Volete condividere una cartella solo per alcuni paesi (DACH) e bloccare tutti gli altri paesi?

  1. Creare il file .htaccess nella cartella desiderata
  2. Aggiungere il seguente contenuto al file .htaccess
    GeoIPEnable On
    
    # Put countries to allow here
    SetEnvIf GEOIP_COUNTRY_CODE CH AllowCountry
    SetEnvIf GEOIP_COUNTRY_CODE DE AllowCountry
    SetEnvIf GEOIP_COUNTRY_CODE AT AllowCountry
    SetEnvIf GEOIP_COUNTRY_CODE LI AllowCountry
    Deny from all
    Allow from env=AllowCountry

     

  3. Con il nostro strumento MaxMind GEOIP potete aggiungere o rimuovere altri paesi e adattare il file ai vostri desideri.

 

Si noti che il database degli indirizzi IP viene aggiornato ogni notte.

Related Post