komagata / dnsbl_client

DNSBL Client is simple solution for spam blocking.

Home Page:http://p0t.jp/archives/2008/09/dnsblclient.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

= DNSBL Client -  Simple DNS BlackList Clinet.

== Description

DNSBL Client is simple solution for spam blocking.
(What is DNSBL? http://en.wikipedia.org/wiki/Dnsbl)

== Usage

Use DNSB Client by irb.

  % irb -r dnsbl
  >> DNSBL::Client.new('list.dsbl.org', 'niku.2ch.net').listed? '61.211.32.39' # safe ip
  => false
  >> DNSBL::Client.new('list.dsbl.org', 'niku.2ch.net').listed? '78.157.143.202' # spam ip
  => true

Use DNSB BBQ. (What is BBQ? http://bbq.uso800.net/)

  % irb -r dnsbl
  >> DNSBL::BBQ.listed? '61.211.32.39' # safe ip
  => false
  >> DNSBL::BBQ.listed? '78.157.143.202' # spam ip
  => true

== Copyright

Author::    Masaki Komagata <komagata@gmail.com>
Copyright:: Copyright (c) 2008 Masaki Komagata
License::   MIT license

About

DNSBL Client is simple solution for spam blocking.

http://p0t.jp/archives/2008/09/dnsblclient.html


Languages

Language:Ruby 100.0%