Project

charon

0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby library to query the Zen service on SpamHaus.org
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 5.0.0
 Project Readme

Charon Gem Version

A Ruby library to query the Zen service on SpamHaus.org

http://rubygems.org/gems/charon

Installation and Usage

You can verify your installation using this piece of code:

gem install charon
require 'charon'

Charon.query '127.0.0.1'

Return Values

Charon.query will return nil if the given address or host is not present in the spamhaus database, otherwise it will return an array in the form:

[ code, name of the list ]

Where codes and lists, as defined on http://www.spamhaus.org/zen/ are:

  • 2 - Direct UBE sources, spam operations & spam services.
  • 3 - Direct snowshoe spam sources detected via automation.
  • 4..7 - CBL (3rd party exploits such as proxies, trojans, etc.).
  • 10..11 - End-user Non-MTA IP addresses set by ISP outbound mail policy.

License

Released under the BSD license.
Copyright © 2013, Simone Margaritelli evilsocket@gmail.com

http://www.evilsocket.net/ All rights reserved.