# Hackl0us/GeoIP2-CN

小巧精悍、准确、实用 GeoIP2 数据库

Repository: https://github.com/Hackl0us/GeoIP2-CN
Canonical: https://ross.abutalabs.com/products/geoip2-cn
Homepage: https://hackl0us.com
Language: Go
License: GPL-3.0
License Family: copyleft
Topics: geoip, geoip2, surge, clash, proxy, shadowrocket, shadowsocks, quantumultx
Last push: 2026-08-25T02:29:40+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 2093, "days_push": 9, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7409, forks 214 (observed 2026-08-28T04:09:59.736882+00:00)

## What it is
A compact (~100 KB) GeoIP2 database containing only mainland China IP address ranges, built by merging ipip.net and CZ (纯真) data and updated automatically every three days. It is designed as a drop-in replacement for MaxMind GeoLite2 in proxy tools like Surge, Clash, Shadowrocket, and Quantumult X for accurate GEOIP,CN routing decisions.

## Use cases
- make GEOIP,CN rules direct China traffic accurately in Clash or Surge
- replace GeoLite2 mmdb that requires registration to download
- reduce proxy tool memory and load time with a tiny China-only IP database
- fix wrong geo-lookup of Chinese IPs like Alibaba Cloud Hong Kong
- download a CN ip-cidr list for firewalls or older proxy tools
- auto-update China IP data every few days via CDN

## When to choose
- your proxy rules only need to distinguish mainland China IPs from everything else
- you use Surge, Clash, Shadowrocket, Quantumult X, or similar tools and want accurate, fast GEOIP,CN lookups
- you want a small, frequently updated, CDN-distributed database without MaxMind registration

## When to avoid
- you need GeoIP lookups for countries or regions other than mainland China
- you need detailed ISP, city, or ASN metadata for IPs
- you need a general-purpose global geolocation database

## Facets
- artifact type: dataset
- maturity: active
- function: search-engine, networking, security
- domain: networking, privacy, censorship-circumvention, developer-tools
- platform: cross-platform, self-hosted
- tags: geoip, geoip2, mmdb, china-ip, proxy-rules, surge, clash, shadowrocket, quantumultx, ip-database

## Member repositories
- Hackl0us/GeoIP2-CN (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:59.736882+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:37:51.915799+00:00, confidence not recorded.
  - readme: https://github.com/Hackl0us/GeoIP2-CN (fetched 2026-08-28T04:09:59.736882+00:00, sha 9d1a07a5d702)
- Data as of 2026-08-30T08:39:29.467469+00:00.
