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

[功能]建议增加IP地址过滤 #43

Closed
HaHaWTH opened this issue Jan 4, 2024 · 1 comment
Closed

[功能]建议增加IP地址过滤 #43

HaHaWTH opened this issue Jan 4, 2024 · 1 comment

Comments

@HaHaWTH
Copy link

HaHaWTH commented Jan 4, 2024

请求增加一个过滤IP地址的功能,可以避免掉一些链接发不出去改发IP的

@houbb
Copy link
Owner

houbb commented Jun 1, 2024

v0.17.0 支持 ipv4 检测

final String text = "个人网站,如果网址打不开可以访问 127.0.0.1。";
final SensitiveWordBs sensitiveWordBs = SensitiveWordBs.newInstance().enableIpv4Check(true).init();
List<String> wordList = sensitiveWordBs.findAll(text);
Assert.assertEquals("[127.0.0.1]", wordList.toString());

@houbb houbb closed this as completed Jun 1, 2024
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

2 participants