httpbl Plugin Project Honeypot Blocklists 1.0
Blocks malware robots (email harversters, comment spammers...) by comparing their IPs to project Honeypot Blocklists
|
Public Member Functions | |
__construct (&$subject, $params) | |
httpbl_check ($apikey) | |
httpbl_logme () | |
httpbl_blockme () | |
httpbl_infected () |
__construct | ( | &$ | subject, |
$ | params | ||
) |
Constructor.
object | $subject | The object to observe |
array | $params | An array that holds the plugin configuration |
Definition at line 32 of file httpbl.php.
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
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
string | $apikey | A string containing the user's Projec Hopot's API Key |
Definition at line 115 of file httpbl.php.
httpbl_infected | ( | ) |
Displays Infection Message
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
Definition at line 166 of file httpbl.php.