Source for file example-resolver.php
Documentation is available at example-resolver.php
//error_reporting(E_ALL|E_STRICT);
require_once 'Services/ProjectHoneyPot.php';
* <?php $access_key = '...'; ?>
include dirname (__FILE__ ) . '/config.php';
* Use a custom Net_DNS2_Resolver with Services_ProjectHoneyPot
$resolver = new Net_DNS2_Resolver (array (
'nameservers' => array ('66.114.197.251',),
* 66.114.197.251 is a authorative NS for dnsbl.httpbl.org
$sphp->setResponseFormat ('object');
$status = $sphp->query ($harvester);
echo "\nMSG: " . $e->getMessage ();
echo "\nCODE: " . $e->getCode ();
if (count($status) == 0 ) {
foreach ($status as $res) {
echo 'Don\'t bother. Probably a regular user. ;-)' . "\n";
if ($res->isHarvester ()) {
echo '<h1>OMG, a harvester!!!</h1>';
echo '<pre>'; var_dump($res); echo '</pre>';
Documentation generated on Mon, 11 Mar 2019 15:45:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|