Advertisement
fplanzer

GeoIP

May 16th, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <ifModule mod_geoip.c>
  2.  
  3. GeoIPEnable On
  4.  
  5. # Put countries to allow here
  6.  
  7. SetEnvIf GEOIP_COUNTRY_CODE AU AllowCountry
  8.  
  9. SetEnvIf GEOIP_COUNTRY_CODE NZ AllowCountry
  10.  
  11. Deny from all
  12.  
  13. Allow from env=AllowCountry
  14.  
  15. </ifModule>
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. <ifModule mod_geoip.c>
  23.  
  24. GeoIPEnable On
  25.  
  26. # Add countries you wish to deny here
  27.  
  28. SetEnvIf GEOIP_COUNTRY_CODE CO DenyCountry
  29.  
  30. SetEnvIf GEOIP_COUNTRY_CODE EG DenyCountry
  31.  
  32. SetEnvIf GEOIP_COUNTRY_CODE HI DenyCountry
  33.  
  34. Allow from all
  35.  
  36. Deny from env=DenyCountry
  37.  
  38. </ifModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement