Dünyanın En Hızlı Alan Adı Sorgulama Sistemi

Demo

http://ulusanyazilim.com/works/domain/

Mantık

<?php 
error_reporting(0);
$url='http://who.is/whois/'.$_POST["sorguc"];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 120);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_URL, $url);
$html = curl_exec($ch);
$html =  file_get_contents($url);
@preg_match('#<pre(.*?)pre>#si',$html,$value);	
@preg_match('#queryResponseHeader (.*?)">#si',$html,$sonuc);
if(strlen(strstr($value[1], "No match found")) > 0){
	echo '<div class="alert alert-success" role="alert">'.$_POST["sorguc"].' Uygun.</div>';
}elseif($sonuc[1] != "hidden"){
	echo '<div class="alert alert-danger" role="alert">'.$_POST["sorguc"].' Alınmış.</div>';
}elseif(strlen(strstr($value[1], "No match found")) == 0 ){
	if(strstr($_POST["sorguc"], ".tr")){
		echo '<div class="alert alert-danger" role="alert">'.$_POST["sorguc"].' Alınmış.</div>';
	}else{
		echo '<div class="alert alert-success" role="alert">'.$_POST["sorguc"].' Uygun.</div>';
	}
}else{	
	echo '<div class="alert alert-success" role="alert">'.$_POST["sorguc"].' Uygun.</div>';
}
?>

Sizin Değerli Görüşlerinize İhtiyacımız Var.