httpbl Plugin Project Honeypot Blocklists 1.0
Blocks malware robots (email harversters, comment spammers...) by comparing their IPs to project Honeypot Blocklists
plgSystemHttpbl Class Reference

Public Member Functions

 __construct (&$subject, $params)
 httpbl_check ($apikey)
 httpbl_logme ()
 httpbl_blockme ()
 httpbl_infected ()

Detailed Description

class plgSystemHttpbl

Todo:
port to Joomla 1.6/1.7

Definition at line 23 of file httpbl.php.


Constructor & Destructor Documentation

__construct ( &$  subject,
params 
)

Constructor.

Parameters:
object$subjectThe object to observe
array$paramsAn array that holds the plugin configuration
Since:
1.0

Definition at line 32 of file httpbl.php.


Member Function Documentation

httpbl_blockme ( )

If a threat has been found blocks the access, still leaving a javascript generated link that false positive users can use to continue browsing. If the links is clicked a 'notabot' cookie is set.

the remote user will get the infection warning message, but will be able to navigate

Since:
1.0

Definition at line 190 of file httpbl.php.

httpbl_check ( apikey)

Main Function checks the user's IP against the BlockList Performs a gethostByName on the remote user's IP address using Project Honeypot DNS and specially formatted DNS Queries If a result is found and identified as a threat, calls the logging, then the blocking functions

See also:
httpbl_logme function logs an indentified threat
httpbl_blockme function brings up a warning message, sends a 403 header and a javascript link for false positiive
Parameters:
string$apikeyA string containing the user's Projec Hopot's API Key
Since:
1.0

Definition at line 115 of file httpbl.php.

httpbl_infected ( )

Displays Infection Message

Since:
1.0
Todo:

give the user a possibility of closing the div by inserting some javascript into the warning div

move the html code from the langage files to a default tmpl file

Definition at line 231 of file httpbl.php.

httpbl_logme ( )

Logs the threat into a text file

Since:
1.0
Todo:
for Joomla 1.6/1.7 versions 1og that information db for ease of use and extraction

Definition at line 166 of file httpbl.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions