# loyalsoldier/geoip

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/loyalsoldier-geoip).**

5,636 stars · 841 forks · Go · cc-by-sa-4.0

## Links

- GitHub: https://github.com/Loyalsoldier/geoip
- awesome-repositories: https://awesome-repositories.com/repository/loyalsoldier-geoip.md

## Topics

`anticensorship` `clash` `geoip` `gfw` `hysteria` `ipv4` `ipv6` `leaf` `maxmind` `mihomo` `nginx` `proxy` `quantumultx` `routing` `shadowrocket` `sing-box` `surge` `trojan-go` `v2ray` `xray`

## Tags

### Data & Databases

- [GeoIP Format Converters](https://awesome-repositories.com/f/data-databases/geoip-format-converters.md) — Generates custom GeoIP database files in multiple formats for use in proxy and routing tools.
- [Customizable Generators](https://awesome-repositories.com/f/data-databases/geoip-format-converters/customizable-generators.md) — Generates custom GeoIP files by configuring data sources and output formats through a JSON configuration file. ([source](https://github.com/Loyalsoldier/geoip/blob/master/README.md))
- [Multi-Format Generators](https://awesome-repositories.com/f/data-databases/geoip-format-converters/multi-format-generators.md) — Converts IP geolocation data into dat, mmdb, SRS, MRS, Clash ruleset, and Surge ruleset files. ([source](https://github.com/Loyalsoldier/geoip#readme))
- [Multi-Source Aggregators](https://awesome-repositories.com/f/data-databases/geoip-format-converters/multi-source-aggregators.md) — Aggregates IP data from multiple sources, including MaxMind and third-party lists, then deduplicates and converts them. ([source](https://github.com/Loyalsoldier/geoip#readme))
- [IP Geolocation](https://awesome-repositories.com/f/data-databases/geolocation-databases/ip-geolocation.md) — Queries IP addresses or CIDR ranges against GeoIP databases to return matching country or category names.
- [MMDB Readers](https://awesome-repositories.com/f/data-databases/geolocation-databases/ip-geolocation/mmdb-readers.md) — Reads IP geolocation data from MaxMind's binary MMDB format using a streaming decoder.

### Networking & Communication

- [Network Traffic Routing Rulesets](https://awesome-repositories.com/f/networking-communication/network-traffic-routing-rulesets.md) — Provides precompiled SRS rule files for each country, region, and major cloud provider to use in routing decisions. ([source](https://github.com/Loyalsoldier/geoip/tree/release/srs))
- [Surge Ruleset Generators](https://awesome-repositories.com/f/networking-communication/network-traffic-routing-rulesets/surge-ruleset-generators.md) — Creates Surge rulesets by outputting IP CIDR ranges as comma-separated entries in plaintext rule files.
- [Ruleset Generators](https://awesome-repositories.com/f/networking-communication/proxy-servers/clash-configuration-managers/ruleset-generators.md) — Generates Clash-compatible ruleset files from IP CIDR ranges for proxy routing.
- [SRS Rule Compilers](https://awesome-repositories.com/f/networking-communication/proxy-servers/sing-box-configurations/srs-rule-compilers.md) — Compiles IP CIDR lists into sing-box SRS rule set files for efficient routing.
- [DAT Serializers](https://awesome-repositories.com/f/networking-communication/proxy-servers/v2ray-configuration-managers/v2ray-geosite-generators/dat-serializers.md) — Writes IP ranges into the V2Ray dat format by encoding CIDR blocks into protobuf-based binary containers.
- [MRS Encoders](https://awesome-repositories.com/f/networking-communication/binary-data-encoding/mrs-encoders.md) — Encodes IP CIDR lists into the mihomo MRS binary format for compact rule storage.
- [Geographic Traffic Routing](https://awesome-repositories.com/f/networking-communication/geographic-traffic-routing.md) — Blocks or routes network traffic based on the geographic origin of IP addresses using curated CIDR lists.
- [Country Rule Editors](https://awesome-repositories.com/f/networking-communication/geoip-database-integrations/geoip-based-ip-blocking-tools/country-rule-editors.md) — Edits and tailors GeoIP rule sets to include or exclude specific countries or regions for targeted traffic filtering. ([source](https://github.com/Loyalsoldier/geoip/fork))
- [IP Range Mergers and Deduplicators](https://awesome-repositories.com/f/networking-communication/network-reliability-diagnostics/network-filtering/ip-address-filters/ip-range-analyzers/ip-range-mergers-and-deduplicators.md) — Provides a CLI tool to merge and deduplicate IP addresses and CIDR ranges from standard input. ([source](https://github.com/Loyalsoldier/geoip/blob/master/README.md))

### Software Engineering & Architecture

- [Proxy Rule Set Generators](https://awesome-repositories.com/f/software-engineering-architecture/functional-composition-rules/proxy-rule-fragment-composers/proxy-rule-set-generators.md) — Produces Clash, Surge, and sing-box rule sets from GeoIP data for automated routing decisions.

### Web Development

- [JSON-Driven Configurations](https://awesome-repositories.com/f/web-development/single-page-applications/single-file-distributions/json-driven-configurations.md) — Uses a JSON configuration file to drive the entire GeoIP file generation pipeline.

### Part of an Awesome List

- [Country-Based Blocking](https://awesome-repositories.com/f/awesome-lists/data/country-and-regional-data/country-identifiers/country-based-blocking.md) — Blocks or routes network traffic based on the country of origin using a curated list of IP CIDR ranges. ([source](https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/clash/ipcidr/cn.txt))

### Security & Cryptography

- [IP Range Mergers](https://awesome-repositories.com/f/security-cryptography/ip-blacklisting/ip-and-cidr-blocking/ip-range-mergers.md) — Reads plaintext IP addresses and CIDR ranges from stdin, deduplicates them, and outputs consolidated lists.
