Java Client Library for SURBL - Spam URI Real-time Blackhole List. Open Source Java project under Apache License v2.0
Current Stable Version is 1.0.1
import org.javastack.surbl.SURBL;
public class Example {
public static void main(String[] args) throws Throwable {
final SURBL surbl = new SURBL();
surbl.load();
System.out.println(surbl.checkSURBL("www.acme.com") ? "spam" : "clean");
}
}
- More examples in Example package
Add the dependency to your pom.xml:
<dependency>
<groupId>org.javastack</groupId>
<artifactId>surbl</artifactId>
<version>1.0.1</version>
</dependency>
Inspired in SURBL, this code is Java-minimalistic version.