twenga / geoip-updater Goto Github PK
View Code? Open in Web Editor NEWGeoIP Updater is a PHP tool that helps updating the GeoIPLite databases.
License: Apache License 2.0
GeoIP Updater is a PHP tool that helps updating the GeoIPLite databases.
License: Apache License 2.0
The validation process only runs the geoip_country_code_by_name() function. That's not enough to validate all databases!!!
We just had the issue, 2 db files were invalid, but geoip_country_code_by_name() still worked... And the db files were validated.
Validation process should run GeoIp functions that sollicitate all db files. The IP list should be extended to include more data to check (country name, isp, region, isp, city....), geoip_record_by_name() is a good candidate.
When unzipping DB files, gzread is currently limited to 2MB files! Larger files are truncated!
See : http://php.net/manual/fr/function.gzread.php and dynamic size.
Currently, errors are simply logged, they should make PHP return an error code to shell that could be caught by Puppet or some other program that executed GeoIp Updater.
Hello Nassim,
Line 383:
$aDbFiles = $this->_oFileSystem->glob($sPath.DIRECTORY_SEPARATOR."*".DIRECTORY_SEPARATOR);
$aDbFiles = $this->_oFileSystem->glob($sPath.DIRECTORY_SEPARATOR."*");
Can you please fix this ?
Thanks
A user modified the list and forgot to specify matching country codes for each IP, this made the validation fail and blacklist the db file!
Validation process should first check that it's got all the data it needs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.