From e6ee2bb6c610a8f7f9ca86da9ebe27e59c2daef3 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Thu, 24 Oct 2024 06:17:02 +0800 Subject: Release: release classical maxmind mmdb file `Country-without-asn.mmdb` Note: Use this `Country-without-asn.mmdb` file other than the `Country.mmdb` file in this project if you do not need the appended company (ASN) lists. The `Country-without-asn.mmdb` is with more accurate country/region geoip data than `Country.mmdb` due to maxmind mmdb format constraint. For more details, see https://github.com/Loyalsoldier/geoip/blob/HEAD/configuration.md#maxmindmmdb-1 --- README.md | 8 +++++++- config.json | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 87de540c..fc6ae41f 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,13 @@ MaxMind 官方版 **ASN** 类型 mmdb 文件: > 适用于 [Nginx](https://nginx.org),需要配合 [ngx_http_geoip2_module](https://github.com/leev/ngx_http_geoip2_module) 模块使用。只保留了 `country` 下的 `iso_code`(两位英文字母表示的国家/地区代码)字段。 -- **Country.mmdb**: +- **Country-without-asn.mmdb**(传统版 GeoIP,只包含国家/地区类别,不包含上述新增类别。建议优先使用): + - [https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country-without-asn.mmdb](https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country-without-asn.mmdb) + - [https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/Country-without-asn.mmdb](https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/Country-without-asn.mmdb) +- **Country-without-asn.mmdb.sha256sum**: + - [https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country-without-asn.mmdb.sha256sum](https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country-without-asn.mmdb.sha256sum) + - [https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/Country-without-asn.mmdb.sha256sum](https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/Country-without-asn.mmdb.sha256sum) +- **Country.mmdb**(增强版 GeoIP,包含国家/地区类别,以及上述新增类别。但由于 MaxMind mmdb 格式限制,部分国家/地区类别的 IP 地址数据不如上述 **Country-without-asn.mmdb** 准确): - [https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb](https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb) - [https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/Country.mmdb](https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/Country.mmdb) - **Country.mmdb.sha256sum**: diff --git a/config.json b/config.json index adf1cc3b..44444ca6 100644 --- a/config.json +++ b/config.json @@ -243,6 +243,25 @@ ] } }, + { + "type": "maxmindMMDB", + "action": "output", + "args": { + "outputDir": "./output", + "outputName": "Country-without-asn.mmdb", + "overwriteList": ["cn", "private"], + "excludedList": [ + "cloudflare", + "cloudfront", + "facebook", + "fastly", + "google", + "netflix", + "telegram", + "twitter" + ] + } + }, { "type": "maxmindMMDB", "action": "output", -- cgit v1.3.1