Skip to content

wp-statistics/DbIP-City-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DB-IP City Lite - Free IP Geolocation Database

npm version npm downloads License GitHub Stars

Free DB-IP City Lite database for IP geolocation. A lightweight alternative to MaxMind with city-level accuracy. Automatically updated and served via jsDelivr CDN.

Website: geo.wp-statistics.com


Features

  • City-Level Accuracy - Get country, city, coordinates, and more
  • Lightweight - Smaller file size (~19 MB) compared to alternatives
  • Auto-Updated - Database updated automatically on 1st of each month
  • Fast CDN - Served via jsDelivr with global edge locations
  • No Authentication - Direct download, no API keys required
  • Free Forever - Open source under CC BY 4.0 license

Quick Start

Direct Download

https://cdn.jsdelivr.net/npm/dbip-city-lite/dbip-city-lite.mmdb.gz

PHP

use GeoIp2\Database\Reader;

$reader = new Reader('/path/to/dbip-city-lite.mmdb');
$record = $reader->city('128.101.101.101');

echo $record->country->name;  // 'United States'
echo $record->city->name;     // 'Minneapolis'

Node.js

const { Reader } = require('@maxmind/geoip2-node');

const reader = await Reader.open('./dbip-city-lite.mmdb');
const response = reader.city('128.101.101.101');

console.log(response.country.names.en);  // 'United States'
console.log(response.city.names.en);     // 'Minneapolis'

Python

import geoip2.database

reader = geoip2.database.Reader('./dbip-city-lite.mmdb')
response = reader.city('128.101.101.101')

print(response.country.name)  # 'United States'
print(response.city.name)     # 'Minneapolis'

WordPress (WP Statistics)

use WP_Statistics\Service\Geolocation\GeolocationFactory;

$location = GeolocationFactory::getLocation('128.101.101.101');
echo $location['city'];  // 'Minneapolis'

Database Info

Property Value
CDN URL https://cdn.jsdelivr.net/npm/dbip-city-lite/dbip-city-lite.mmdb.gz
npm npm install dbip-city-lite
Update Schedule Monthly (1st of each month)
Size ~19 MB (compressed)
Format MaxMind DB (MMDB)
License CC BY 4.0

Update Schedule

This database is automatically updated via GitHub Actions:

  • Schedule: 1st of each month at 06:00 UTC
  • Source: DB-IP Lite
  • Distribution: Published to npm, served via jsDelivr CDN

Last updated: 2026-03-02


DB-IP vs MaxMind

Feature DB-IP City Lite MaxMind GeoLite2-City
File Size ~19 MB ~68 MB
Update Frequency Monthly Twice weekly
License CC BY 4.0 CC BY-SA 4.0
Best For Smaller deployments Higher accuracy needs

Related Resources


Attribution

This database is provided by DB-IP. When using this database, you must include a link back to DB-IP.com on pages that display results from the database, as required by the CC BY 4.0 license.


License

DB-IP City Lite is licensed under CC BY 4.0.

Maintained by VeronaLabs and the WP Statistics team.

About

Free DB-IP City Lite database for IP geolocation. Lightweight alternative to MaxMind, auto-updated via jsDelivr CDN.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors