Sto installando mod_geoIP per cPanel a base di questi instructions (non molto dettagliato, da qui a questa domanda)aiuto installazione mod_geoIP?
A questo punto, ho installato il modulo secondo le istruzioni. Ho anche scaricato il file CSV per il Paese GeoLite. AM mi manca qualcosa?
Suppongo che il passo successivo è quello di creare la voce nel mio file .htaccess per i paesi ammessi in questo modo:
GeoIPEnable On
GeoIPDBFile /path/to/GeoIPCountryWhois.csv
SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE CA AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE MX AllowCountry
Deny from all
Allow from env=AllowCountry
fa apparire come se mi manca qualcosa? C'è anche un modo per testarlo?
questo non funziona? –
Puoi vedere GEOIP_COUNTRY_CODE impostato? Ad esempio, utilizzando $ _ENV ["GEOIP_COUNTRY_CODE"] è un file php. – Gerben