• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

IP Blacklist Check Script


New Member
<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.

Homepage: http://dnsbllookup.com
function dnsbllookup($ip){
$dnsbl_lookup=array("dnsbl-1.uceprotect.net","dnsbl-2.uceprotect.net","dnsbl-3.uceprotect.net","dnsbl.dronebl.org","dnsbl.sorbs.net","zen.spamhaus.org"); // 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";
Why in earth would you want something like this?

Could be used for spam reduction. If something like this was set up to check DroneBL, you could make it reject signups from the IPs of known bots or proxies. It would help cut down on abuse rates, but at the same time it also would hammer on your server a bit because of the extra work involved in performing the lookups.

Incidentally though, you should not use the spamhaus list if you are applying something like this to your signup system. Some ISPs have decided to actively blacklist their own IP ranges- for instance Time Warner Cable dynamic IPs cannot send email to Yahoo because the Time Warner IPs are listed in spamhaus. Trying to use that list on your site's signup service will mean that a lot of people won't be able to sign up.