HOME LINKS SAL PUBLIC SOFTWARE SEARCH MADE UP

SAGATOR


geoip2_country()
  GeoIP2 country match (using mmdb files).
  
  Usage: geoip2_country(country_codes, allow=True,
                        db="/usr/share/GeoIP/GeoLite2-Country.mmdb")
  
  Where: country_codes is a list of allowed/denied countries.
           Use upper case country codes only!
         allow is an boolean, which defines if countries should
           be allowed or denied
         db is a full pathname to an GeoIP.mmdb file
  
  Example: geoip2_country(["SK"])
  
  New in version 2.0.0.