komagata / dnsbl_client

DNSBL Client is simple solution for spam blocking.

This URL has Read+Write access

dnsbl_client / README
100644 31 lines (21 sloc) 0.748 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
= 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