Merhaba, Bu yazımda e-posta sunucusu için güncel spam listelerinden nasıl ip sorgulaması yapılır onunla ilgili bir script paylaşacağım.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
<html> <head> <title>DNSBL Lookup Tool - IP Blacklist Check Script</title> </head> <body> <form action="" method="get"> <input type="text" value="" name="ip" /> <input type="submit" value="LOOKUP" /> </form> <?php 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 if($ip){ $reverse_ip=implode(".",array_reverse(explode(".",$ip))); foreach($dnsbl_lookup as $host){ if(checkdnsrr($reverse_ip.".".$host.".","A")){ $listed.=$reverse_ip.'.'.$host.' <font color="red">Listed</font><br />'; } } } if($listed){ echo $listed; }else{ echo '"A" record was not found'; } } $ip=$_GET['ip']; if(isset($_GET['ip']) && $_GET['ip']!=null){ if(filter_var($ip,FILTER_VALIDATE_IP)){ echo dnsbllookup($ip); }else{ echo "Please enter a valid IP"; } } ?> </body> </html> |
Kaynak : http://snipplr.com/view/64564/ip-blacklist-check-script/
Devamını Oku