Skip to content

Commit

Permalink
Release: release classical maxmind mmdb file Country-without-asn.mmdb
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Loyalsoldier committed Oct 23, 2024
1 parent 40e0ad6 commit e6ee2bb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
19 changes: 19 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e6ee2bb

Please sign in to comment.