×

php up to date

Check IP Under spam listed or not using php

Check IP Under spam listed or not using php

 

$host = "156.200.53.65";

$rbl  = 'sbl-xbl.spamhaus.org';
// valid query format is: 156.200.53.65.sbl-xbl.spamhaus.org
$rev = array_reverse(explode('.', $host));

$lookup = implode('.', $rev) . '.' . $rbl;

if ($lookup != gethostbyname($lookup)) {
   ?>
   <span style="color:red;"><?php echo "IP: $host is listed in $rbl\n"; ?></span>
<?php    echo "<br/>";
} else {
    echo "IP: $host NOT listed in $rbl\n";
    echo "<br/>";

 Just pass your ip address and find whether it comes unders spam list or not using spamhaus. If you need to fine bulk ip just post ip in the loop and get bulk result.

SHARE

blogger

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

Thanks for your valuable feedback