Return to Snippet

Revision: 56770
at April 15, 2012 18:44 by DNSBL

Initial Code
<title>DNSBL Lookup Tool - IP Blacklist Check Script</title>
<form action="" method="get">
<input type="text" value="" name="ip" />
<input type="submit" value="LOOKUP" />
This is a simple PHP script to lookup for blacklisted IP against multiple DNSBLs at once.

You are free to use the script, modify it, and/or redistribute the files as you wish.

function dnsbllookup($ip){
$dnsbl_lookup=array("","","","","",""); // Add your preferred list of DNSBL's
foreach($dnsbl_lookup as $host){
$listed.=$reverse_ip.'.'.$host.' <font color="red">Listed</font><br />';
echo $listed;
echo '"A" record was not found';
if(isset($_GET['ip']) && $_GET['ip']!=null){
echo dnsbllookup($ip);
echo "Please enter a valid IP";

Initial URL

Initial Description
Enter any suspicious IP address that you wanted to check into the form field and press the "LOOKUP" button

Initial Title
IP Blacklist Check Script

Initial Tags
email, list, mail, filter, security, ip

Initial Language