Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有办法增加ip2location的免费ip地理数据库用作国家地域识别,和asn信息 #40

Open
1265578519 opened this issue Mar 21, 2023 · 0 comments

Comments

@1265578519
Copy link

1265578519 commented Mar 21, 2023

例如要封禁Google Cloud Platform (GCP)、Amazon Web Services (AWS)、Microsoft Azure(AZ)的ASN数据表

在请求控制新增2个匹配模块,ip2location.bin 文件放在安装目录的bin文件夹

bgp.he.net 上数据不全,只能搜到亚洲地区的gg云,asia,亚洲地区
BX61 @3)C0M03K3 4H`HK(G

ip2location上提供免费的asn信息,不过还有包含谷歌其它业务的服务器ip,但是可以得出ASN号是396982
https://www.ip2location.com/as396982

匹配模块1
国家区域两字母缩写代码,例如KR,支持|多个匹配

匹配模块2
区域ASN代码,例如396982,也支持|多个

也可以dso化,直接把ip2location.bin编译成so文件,缺点就是没办法自己更新数据库信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant