"https://antibot.pw/api/check-visitor.php?ip=".$ipNe."&block=".$config['blocktype']."&apikey=".$config['ApiKey'], CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_HTTPHEADER => array( "content-type: application/x-www-form-urlencoded", ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); $json = json_decode($response,true); if($json['is_bot'] == 1){ $_SESSION['check'] = true; $_SESSION['is_bot'] = true; die( header("HTTP/1.1 401 Unauthorized") ); exit(); } } if($_SESSION['check'] == true && $_SESSION['is_bot'] == true){ die( header("HTTP/1.1 401 Unauthorized") ); exit(); }