httpbl

http:BL API

License

License

GroupId

GroupId

com.osinka.httpbl
ArtifactId

ArtifactId

httpbl_2.11
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

httpbl
http:BL API
Project URL

Project URL

https://github.com/osinka/httpbl
Project Organization

Project Organization

Osinka
Source Code Management

Source Code Management

http://github.com/osinka/httpbl

Download httpbl_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.osinka.httpbl/httpbl_2.11/ -->
<dependency>
    <groupId>com.osinka.httpbl</groupId>
    <artifactId>httpbl_2.11</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.osinka.httpbl/httpbl_2.11/
implementation 'com.osinka.httpbl:httpbl_2.11:2.0.0'
// https://jarcasting.com/artifacts/com.osinka.httpbl/httpbl_2.11/
implementation ("com.osinka.httpbl:httpbl_2.11:2.0.0")
'com.osinka.httpbl:httpbl_2.11:jar:2.0.0'
<dependency org="com.osinka.httpbl" name="httpbl_2.11" rev="2.0.0">
  <artifact name="httpbl_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.osinka.httpbl', module='httpbl_2.11', version='2.0.0')
)
libraryDependencies += "com.osinka.httpbl" % "httpbl_2.11" % "2.0.0"
[com.osinka.httpbl/httpbl_2.11 "2.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.2

test (2)

Group / Artifact Type Version
org.scalatest : scalatest_2.11 jar 2.2.2
org.scalacheck : scalacheck_2.11 jar 1.11.6

Project Modules

There are no modules declared in this project.

Maven Central Build Status

http:BL API in Scala

"http:BL" API is similar to DNSBL, but for web traffic rather than mail traffic. The specification is here

Using

In SBT:

libraryDependencies += "com.osinka.httpbl" %% "httpbl" % "2.0.0"

In your code:

import com.osinka.httpbl._

val api = HttpBL(accessKey)

val response = api("127.0.0.1")
response match {
  case Some(found @ HttpBL.Result) =>
    found.isSuspicious
    found.isHarvester
    found.isCommentSpammer
    found.days   // how many days ago this IP has been seen
    found.threat // threat level

  case Some(searchEngine @ HttpBL.SearchEngine) =>
    searchEngine.serial == SearchEngines.Google

  case None =>
    // not found
}
com.osinka.httpbl

Osinka

Versions

Version
2.0.0