# Loyalsoldier/geoip

🌚 🌍 🌝 GeoIP 增强版，自由定制多种格式 GeoIP 文件，包括但不限于 V2Ray dat 格式文件 geoip.dat、MaxMind mmdb 格式文件、sing-box SRS 格式文件、mihomo MRS 格式文件、Clash ruleset、Surge ruleset、Nginx allow & deny 规则文件等。Enhanced edition of GeoIP for Nginx, V2Ray, Xray-core, Clash, mihomo, sing-box, Shadowrocket, Quantumult X, Surge, hysteria, Trojan-Go, dae, etc.

Repository: https://github.com/Loyalsoldier/geoip
Canonical: https://ross.abutalabs.com/products/geoip
Language: Go
License: CC-BY-SA-4.0
License Family: other
Topics: v2ray, geoip, routing, ipv4, ipv6, trojan-go, proxy, anticensorship, gfw, xray, clash, hysteria, maxmind, sing-box, mihomo, shadowrocket, surge, quantumultx, nginx, anti-censorship
Last push: 2026-08-21T07:58:21+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 98, release rhythm 86, longevity 100
- inputs: {"age_days": 2344, "days_push": 12, "days_rel": 14, "gap_med": 6.0, "n_releases_24m": 151}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6463, forks 887 (observed 2026-08-28T04:09:43.621519+00:00)

## What it is
An enhanced GeoIP project that automatically generates IP geolocation data files in multiple formats (V2Ray dat, MaxMind mmdb, sing-box SRS, mihomo MRS, Clash/Surge rulesets, Nginx allow/deny lists) every week. It also ships a CLI tool for users to build custom GeoIP files for proxy tools like V2Ray, Xray, Clash, sing-box, and Surge.

## Use cases
- generate geoip.dat for v2ray routing rules
- download maxmind mmdb country database for clash
- create custom geoip files for sing-box srs format
- block or allow countries in nginx by ip
- route traffic by country in xray or mihomo
- build custom ip ruleset for surge or shadowrocket

## When to choose
- you need up-to-date country-level IP lists for proxy routing tools
- you want a custom GeoIP file in a specific format like dat, mmdb, SRS, or MRS
- you need Nginx allow/deny lists based on country

## When to avoid
- you need city-level or ISP-level geolocation detail rather than country-level
- you need real-time IP lookup via an API instead of static data files

## Facets
- artifact type: dataset
- maturity: active
- function: geospatial, developer-tools, cli
- domain: networking, privacy, censorship-circumvention, developer-tools
- platform: cross-platform, cli, go
- tags: geoip, ip-geolocation, v2ray, clash, sing-box, proxy-routing, maxmind, ruleset-generation

## Member repositories
- Loyalsoldier/geoip (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:43.621519+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:44:37.311228+00:00, confidence not recorded.
  - readme: https://github.com/Loyalsoldier/geoip (fetched 2026-08-28T04:09:43.621519+00:00, sha 652d2e4c383a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
