[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/bundled-libs/Net/ -> DNSBL.php (sommaire)

(pas de description)

Poids: 153 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Net_DNSBL:: (6 méthodes):
  setBlacklists()
  getBlacklists()
  isListed()
  getHostForLookup()
  buildLookUpHost()
  reverseIp()


Classe: Net_DNSBL  - X-Ref

PEAR::Net_DNSBL

This class acts as interface to generic Realtime Blocking Lists
(RBL)

Net_RBL looks up an supplied host if it's listed in 1-n supplied
Blacklists

setBlacklists($blacklists)   X-Ref
Set the blacklist to a desired blacklist.

param: array Array of blacklists to use. May contain only one element.
return: bool true if the operation was successful

getBlacklists()   X-Ref
Get the blacklists.

return: array Currently set blacklists.

isListed($host)   X-Ref
Checks if the supplied Host is listed in one or more of the
RBLs.

param: string Host to check for being listed.
return: boolean true if the checked host is listed in a blacklist.

getHostForLookup($host, $blacklist)   X-Ref
Get host to lookup. Lookup a host if neccessary and get the
complete FQDN to lookup.

param: string Host OR IP to use for building the lookup.
param: string Blacklist to use for building the lookup.
return: string Ready to use host to lookup

buildLookUpHost($ip, $blacklist)   X-Ref
Build the host to lookup from an IP.

param: string IP to use for building the lookup.
param: string Blacklist to use for building the lookup.
return: string Ready to use host to lookup

reverseIp($ip)   X-Ref
Reverse the order of an IP. 127.0.0.1 -> 1.0.0.127. Currently
only works for v4-adresses

param: string IP to reverse.
return: string Reversed IP



Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics