Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Lookup for blacklisted IP addresses against multiple DNSBLs at once.
<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";

This comment has been minimized.

Copy link

@Balainfotech Balainfotech commented Dec 29, 2014

A record was not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment