Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. apt-get install libapache2-mod-geoip
  2.  
  3. edit /etc/apache2/mods-available/geoip.conf
  4. <IfModule mod_geoip.c>
  5. GeoIPEnable On
  6. GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
  7. </IfModule>
  8.  
  9. /etc/init.d/apache2 reload
  10.  
  11. SetEnvIf GEOIP_COUNTRY_CODE US AllowedCountry
  12.  
  13. Deny from all
  14. Allow from env=AllowedCountry
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement