Turingo
Emberi ellenőrzés az Omicron Coding oldalaihoz. Proof-of-work alapú, cookie és követés nélkül.
Kipróbálás
Beépítés
<script src="https://turingo.omicroncoding.com/api.js" async defer></script>
<form method="post" action="/kapcsolat">
...
<div class="turingo"></div>
<button>Küldés</button>
</form>
A token a turingo-response mezőben érkezik. A backend így ellenőrzi:
$ch = curl_init('https://turingo.omicroncoding.com/api/siteverify');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query([
'secret' => TURINGO_SECRET,
'response' => $_POST['turingo-response'] ?? '',
]),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 5,
]);
$r = json_decode((string) curl_exec($ch), true);
$ok = !empty($r['success'])
&& in_array($r['hostname'], ['pelda.hu', 'www.pelda.hu'], true);
A token 2 percig érvényes, és csak egyszer használható fel.