Chủ Nhật, 23 tháng 10, 2011

Code check ip reverse-ip

Code check ip reverse-ip cho bạn nào cần

<?php

ob_implicit_flush
(1);error_reporting(E_NONE);

function 
reverse($ip){$OFF 0;$domain = array();$contador=1;
do{   
    unset(
$url_dns);
    
$url 'http://api.search.live.net/json.aspx?AppId=7066FAEB6435DB963AE3CD4AC79CBED8B962779C&Query=IP:'.$ip.'&Sources=web&Web.Offset='.$OFF;
    
$data  json_decode(file_get_contents($url));

    foreach(
$data->SearchResponse->Web->Results as $value){
        
$dms parse_url($value->UrlPHP_URL_HOST);


    
$url_dns[] = $dms;
                                }



    if(
$OFF == ){
     
$actual $url_dns;
    }else{
      
$pasado $url_dns;
    }
    
$OFF $OFF 10;

}while(
$actual != $pasado);

return 
$dns;
            }
$host htmlentities($_GET['host'], ENT_QUOTES);$ip gethostbyname($host);reverse($ip);
?>


EmoticonEmoticon