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

Class: Net_DNSBL

Source Location: /Net_DNSBL-1.2.1/Net/DNSBL.php

Class Overview




Variables

Methods


Child classes:

Net_DNSBL_SURBL
PEAR::Net_DNSBL_SURBL

Inherited Variables

Inherited Methods


Class Details

[line 37]


[ Top ]


Class Variables

$blacklists = array('sbl-xbl.spamhaus.org',
                            'bl.spamcop.net')

[line 47]

Array of blacklists.

Must have one or more elements.

  • Access: protected

Type:   array


[ Top ]

$results = array()

[line 56]

Array of Results
  • Access: protected

Type:   array


[ Top ]



Method Detail

buildLookUpHost   [line 214]

string buildLookUpHost( string $ip, string $blacklist)

Build the host to lookup from an IP.
  • Return: Ready to use host to lookup
  • Access: protected

Parameters:

string   $ip   —  IP to use for building the lookup.
string   $blacklist   —  Blacklist to use for building the lookup.

[ Top ]

getBlacklists   [line 81]

array getBlacklists( )

Get the blacklists.
  • Return: Currently set blacklists.
  • Access: public

[ Top ]

getDetails   [line 94]

array getDetails( string $host)

Returns Blacklist and Reply from the Blacklist, a host is listed in.
  • Return: result. $result['dnsbl'] contains DNSBL, $result['record'] contains returned DNS record.
  • Access: public

Parameters:

string   $host   —  Host to check

[ Top ]

getHostForLookup   [line 192]

string getHostForLookup( string $host, string $blacklist)

Get host to lookup. Lookup a host if neccessary and get the complete FQDN to lookup.
  • Return: Ready to use host to lookup
  • Access: protected

Overridden in child classes as:

Net_DNSBL_SURBL::getHostForLookup()
Get Hostname to ask for.

Parameters:

string   $host   —  Host OR IP to use for building the lookup.
string   $blacklist   —  Blacklist to use for building the lookup.

[ Top ]

getListingBl   [line 110]

bl, getListingBl( string $host)

Returns Blacklist, host is listed in.
  • Return: a host is listed in or false
  • Access: public

Parameters:

string   $host   —  Host to check

[ Top ]

getListingRecord   [line 126]

bl, getListingRecord( string $host)

Returns result, when a host is listed.
  • Return: a host is listed in or false
  • Access: public

Parameters:

string   $host   —  Host to check

[ Top ]

getTxt   [line 142]

array getTxt( string $host)

Returns TXT-Records, when a host is listed.
  • Return: TXT-Records for this host
  • Access: public

Parameters:

string   $host   —  Host to check

[ Top ]

isListed   [line 159]

boolean isListed( string $host)

Checks if the supplied Host is listed in one or more of the RBLs.
  • Return: true if the checked host is listed in a blacklist.
  • Access: public

Parameters:

string   $host   —  Host to check for being listed.

[ Top ]

reverseIp   [line 227]

string reverseIp( string $ip)

Reverse the order of an IP. 127.0.0.1 -> 1.0.0.127. Currently only works for v4-adresses
  • Return: Reversed IP
  • Access: protected

Parameters:

string   $ip   —  IP to reverse.

[ Top ]

setBlacklists   [line 65]

bool setBlacklists( array $blacklists)

Set the blacklist to a desired blacklist.
  • Return: true if the operation was successful
  • Access: public

Parameters:

array   $blacklists   —  Array of blacklists to use. May contain only one element.

[ Top ]


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