Proposal for "Services_ProjectHoneyPot"

» Metadata » Status
» Description
This package interfaces the API for http:bl on Project HoneyPot.

It needs the access key (you need an account on their website to request one) and checks a given IP against their database of known offenders

The response includes all the information, e.g. is search engine, is a harvester, is a spammer, is suspicious and so on.

Usage example and source are included in the .phps - scroll all the way down.

Here is quick rundown:


try {
$sphp = Services_ProjectHoneyPot::factory($access_key);

//$ip = $_SERVER['REMOTE_ADDR'];
$ip = '24.132.194.14';

$status = $sphp->query($ip);

} catch (Services_ProjectHoneyPot_Exception $e) {
echo '<br />MSG: ' .$e->getMessage();
echo '<br />CODE: ' . $e->getCode();
exit;
}
echo '<pre>'; var_dump($status); echo '</pre>';


Feedback would be great (code, etc.), the people of Project HoneyPot like it already.
» Dependencies » Links
  • Net_DNS
  • Net_CheckIP2
  • PEAR_Exception
  • PHP5
» Timeline » Changelog
  • First Draft: 2007-04-28
  • Proposal: 2007-04-29
  • Call for Votes: 2008-02-14
  • Voting Extended: 2008-02-22
  • Till Klampaeckel
    [2007-06-16 16:23 UTC]

    ported Net_CheckIP to PHP5
    * the file is linked
    * not yet in CVS (no time, sorry)

    started working on a Net_DNS2 port
    * I think I got it E_STRICT compliant
    * shifted from PEAR_Error to PEAR_Exception
    * not yet finished though ;/

    some cs
    * moved constants for Services_ProjectHoneyPot into the class
  • Till Klampaeckel
    [2007-07-18 20:08 UTC]

    * renamed constant (shorter = better)
    * hopefully took care of all feedback
  • Till Klampaeckel
    [2008-02-07 20:17 UTC]

    * (finally) created a PEAR package
    * split off response parsing into a subclass (Services_ProjectHoneyPot_Response)
    * more inline documentation
    * added a couple tests
    * added config.php-dist for tests and examples
    * many CS fixes (should conform 100%)
    * moved everything on Google Code and into SVN
  • Till Klampaeckel
    [2008-02-14 16:19 UTC]

    Had nothing to add, changing to accept votes.