search for: newgeoip2db

Displaying 4 results from an estimated 4 matches for "newgeoip2db".

2019 May 14
2
weakforced and GeoIP lookups
...kforced questions here as well, but I could not >> find a dedicated mailinglist for wforce. >> >> I want to enable GeoIP lookups in my wforce daemon. In a first step I >> installed luarocks and lua-compat53 to install mmdblua module. >> Then I added >> >> newGeoIP2DB("country", "/usr/local/share/GeoIP/GeoLite2-Country.mmdb") >> local mygeodb = getGeoIP2DB("country") >> if(mygeodb:lookupCountry(lt.remote) == 'XX') >> then >> return -1, "country blocked", "country blocked", { coun...
2019 May 14
2
weakforced and GeoIP lookups
...>> find a dedicated mailinglist for wforce. >>>> >>>> I want to enable GeoIP lookups in my wforce daemon. In a first step I >>>> installed luarocks and lua-compat53 to install mmdblua module. >>>> Then I added >>>> >>>> newGeoIP2DB("country", "/usr/local/share/GeoIP/GeoLite2-Country.mmdb") >>>> local mygeodb = getGeoIP2DB("country") >>>> if(mygeodb:lookupCountry(lt.remote) == 'XX') >>>> then >>>> return -1, "country blocked", &qu...
2019 May 14
0
weakforced and GeoIP lookups
Hi list hope it's okay to ask weakforced questions here as well, but I could not find a dedicated mailinglist for wforce. I want to enable GeoIP lookups in my wforce daemon. In a first step I installed luarocks and lua-compat53 to install mmdblua module. Then I added newGeoIP2DB("country", "/usr/local/share/GeoIP/GeoLite2-Country.mmdb") local mygeodb = getGeoIP2DB("country") if(mygeodb:lookupCountry(lt.remote) == 'XX') then return -1, "country blocked", "country blocked", { country="XX" } end to wforce....
2019 May 14
0
weakforced and GeoIP lookups
...well, but I could not >>> find a dedicated mailinglist for wforce. >>> >>> I want to enable GeoIP lookups in my wforce daemon. In a first step I >>> installed luarocks and lua-compat53 to install mmdblua module. >>> Then I added >>> >>> newGeoIP2DB("country", "/usr/local/share/GeoIP/GeoLite2-Country.mmdb") >>> local mygeodb = getGeoIP2DB("country") >>> if(mygeodb:lookupCountry(lt.remote) == 'XX') >>> then >>> ? return -1, "country blocked", "country block...