Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/try0/dnsbl-checker
DNSBL (DNS-Based Black List) checker.
https://github.com/try0/dnsbl-checker
blacklist blacklist-ips blocklist dnsbl dnsbl-checker java java-8 spam-detection
Last synced: 16 days ago
JSON representation
DNSBL (DNS-Based Black List) checker.
- Host: GitHub
- URL: https://github.com/try0/dnsbl-checker
- Owner: try0
- Created: 2020-01-24T03:56:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-25T02:16:32.000Z (almost 5 years ago)
- Last Synced: 2024-10-29T21:04:12.029Z (2 months ago)
- Topics: blacklist, blacklist-ips, blocklist, dnsbl, dnsbl-checker, java, java-8, spam-detection
- Language: Java
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dnsbl-checker
DNSBL (DNS-Based Black List) checker.[Examples](https://github.com/try0/dnsbl-checker/blob/master/dnsbl-checker/src/test/java/jp/try0/jlib/dnsbl/DnsblCheckerExamples.java)
```java
// As a java.util.function.Predicateboolean isListedInSpamhausBl = DnsblService.Catalog.SPAMHAUS.test(CHECK_TARGET_IP);
Predicate detector = DnsblService.Catalog.SPAMHAUS.and(DnsblService.Catalog.BARRACUDA);
boolean isListedInSpamhausAndBarracudaBl = detector.test(CHECK_TARGET_IP);
``````java
DnsblChecker checker = DnsblChecker.getDefaultInstance();// check all services
checker.checkAll(CHECK_TARGET_IP).forEach(result -> {});
// check services until detected
DnsblCheckResult result = checker.checkAny(CHECK_TARGET_IP);
``````java
DnsblChecker customChecker = new DnsblChecker();
customChecker.addCheckers(DnsblService.Catalog.SPAMHAUS, DnsblService.Catalog.BARRACUDA);DnsblCheckResult result = customChecker.checkAny(CHECK_TARGET_IP);
```