Merhaba işimizi kolaylaştırmak amaçlı ip adreslerinin email için blacklist olup olmadığını toplu şekilde sorgulama yapan php betiğidir.ip adreslerini text area içine toplu şekilde yazıp tek seferde sorgulama yapabilirsiniz.
[php]
<center>
<form method="post">
<textarea name="ipadres" style="width:500px;height:500px;">
</textarea><br>
<input type="submit" value="Tarama Yap">
</form>
</center>
<?php
ob_start();
##################################### www.keykubad.com ############################################
##################################### Blacklist Kontrol Yazılımı ############################################
##################################### Kodlayan : Keykubad ############################################
if($_POST){
$ipler =$_POST["ipadres"];
$ipler =explode("\r\n", $ipler);
function acsite($url,$post){
$useragent = ‘Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0′;
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_TIMEOUT, 1000);
$rmx = curl_exec($ch);
curl_close($ch);
return $rmx;
}
$desen =’#<span class="label label-(.*?)">(.*?)</span></td></tr>#’;
for($s=0;$s<count($ipler);$s++){
$ipci =$ipler[$s];
$acos =acsite("http://www.ipvoid.com/","ip=".$ipci."");
preg_match_all($desen,$acos,$bak);
foreach ($bak[0] as $iplerim){
echo "IP DURUMU : ".$ipci."–".$iplerim."<br>";
ob_flush();
flush();
}
}
}
?>
[/php]