Quick testing

In PHP :

<?php
$user = 'MY_USER';
$pass = 'MY_PASSWORD';
$transaction_id = 'MY_UNIQUE_TRANSACTION_iD';
$targeted_element = '.my_targeted_element';
$timestamp = time();
$root_api_check_url = "http://api.dcbprotect.com/$user/check";
$root_api_script_url = "http://api.dcbprotect.com/$user/script";
$root_callback_url = basename(__FILE__);
// Timeout in case of failure
$ctx = stream_context_create(array('http'=> array('timeout' => 2)));
if(!empty($_GET['to_check'])) {
   $url_params = array(
       'ti' => $_GET['to_check'],
       'ts' => $timestamp
   );
   $to_sign = http_build_query($url_params);
   $request = $request = $to_sign . '&s=' .buildEvinaSignature() ; // to get buildEvinaSignature code contact us
   $json_res = json_decode(file_get_contents("$root_api_check_url?$request",null,$ctx));
   $message = (!empty($json_res) && $json_res->oo == 0) ? 'Caught you !' : 'Access granted';
   $script = 'alert("'.$message.'");';
}
else {
   $url_params = array(
       'ti' => $transaction_id,
       'te' => $targeted_element,
       'ts' => $timestamp,
      'arg1' => ‘Country_Operator’
      'arg2' => ‘source_id’,
      'arg3' => ‘landing_page_id’
   );
   $to_sign = http_build_query($url_params);
   $request = $to_sign . '&s=' .buildEvinaSignature() ; // to get buildEvinaSignature code contact us
   $json_res = json_decode(file_get_contents("$root_api_script_url?$request",null,$ctx));
   $script = !empty($json_res->s) ? $json_res->s : '';
}
?>
<html>
<head>
   <title>DCBProtect demo</title>
   <script type="text/javascript">        
       // <![CDATA[
       <?php echo $script; ?>
      ]]> //
   </script>
</head>
<body>
   <a href="<?php echo $root_callback_url?>?to_check=<?php echo $transaction_id ?>" class="my_targeted_element">Check</a>
</body>
</html>