apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: Net_DNSBL_SURBL

Source Location: /Net_DNSBL-0.5.2/DNSBL/SURBL.php

Class Overview

Net_DNSBL
   |
   --Net_DNSBL_SURBL



Variables

Methods


Inherited Variables

Inherited Methods

Class: Net_DNSBL

Net_DNSBL::buildLookUpHost()
Build the host to lookup from an IP.
Net_DNSBL::getHostForLookup()
Get thublice host to lookup. Lookup a host if neccessary and get the complete FQDN to lookup
Net_DNSBL::getRBL()
Get the blacklists.
Net_DNSBL::isListed()
Checks if the supplied Host is listen in one or more of the RBLs
Net_DNSBL::reverseIp()
Reverse the order of an IP. 127.0.0.1 -> 1.0.0.127
Net_DNSBL::setRBL()
Set the blacklist to a desired blacklist.

Class Details

[line 39]


[ Top ]


Class Variables

$blacklists = array('multi.surbl.org')

[line 49]

Array of blacklists.

Must have one or more elements.

  • Access: protected

Type:   string[]
Overrides:   Array


[ Top ]

$doubleCcTldFile =  'http://spamcheck.freeapp.net/two-level-tlds'

[line 62]

File containing whitelisted hosts

There are some whitelisted hosts (co.uk for example). This requires the package to not ask the domain name but the host name (spammer.co.uk instead of co.uk).

  • See: $twoLevelCcTld
  • Access: protected

Type:   string


[ Top ]



Method Detail

getHostForLookup   [line 123]

string getHostForLookup( string $uri, $blacklist)

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

  • Return: Host to lookup
  • Access: protected

Overrides Net_DNSBL::getHostForLookup() (Get thublice host to lookup. Lookup a host if neccessary and get the complete FQDN to lookup)

Parameters:

string   $uri   —  URL to check.
   $blacklist   — 

[ Top ]

isDoubleCcTld   [line 80]

boolean isDoubleCcTld( string $fqdn)

Check if the last two parts of the FQDN are whitelisted
  • Return: True if the host is whitelisted
  • Access: protected

Parameters:

string   $fqdn   —  Host to check if it is whitelisted

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:59:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.