[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

PEAR::Net_DNSBL_SURBL

Author: Sebastian Nohn <sebastian@nohn.net>
License: http://www.php.net/license/3_0.txt
Version: 0.5.4
Poids: 164 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Net_DNSBL_SURBL:: (2 méthodes):
  isDoubleCcTld()
  getHostForLookup()


Classe: Net_DNSBL_SURBL  - X-Ref

isDoubleCcTld($fqdn)   X-Ref
Check if the last two parts of the FQDN are whitelisted.

param: string Host to check if it is whitelisted
return: boolean True if the host is whitelisted

getHostForLookup($uri, $blacklist)   X-Ref
Get Hostname to ask for.

Performs the following steps:

(1) Extract the hostname from the given URI
(2) Check if the "hostname" is an ip
(3a) IS_IP Reverse the IP (1.2.3.4 -> 4.3.2.1)
(3b) IS_FQDN Check if is in "CC-2-level-TLD"
(3b1) IS_IN_2LEVEL: we want the last three names
(3b2) IS_NOT_2LEVEL: we want the last two names
(4) return the FQDN to query.

param: string URL to check.
return: string Host to lookup



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