document.title='New AI Technology DDoS Protection System';
var css = '@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(360deg)}}body{margin:0;background:#000}header,img{margin:0;position:absolute;top:50%;left:50%;-ms-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);text-align:center}img{width:50px;height:50px}p{border-radius:50%;border:25px solid #2e9e0b;border-right-color:#d87000;border-left-color:#d87000;width:70px;height:70px;-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite;margin:0 auto;background:#fff}a,body,footer{color:#fff}footer{font-family:system-ui;position:absolute;bottom:3px;text-align:center;font-size:12px;width:100%}a{text-decoration:none}';
var head = document.head || document.getElementsByTagName('head')[0];
ContentType = document.createElement('meta');
ContentType['http-equiv'] = 'Content-Type';
ContentType['content'] = 'text/html; charset=utf-8';
head.appendChild(ContentType);
viewport = document.createElement('meta');
viewport['name'] = 'viewport';
viewport['content'] = 'width=device-width, initial-scale=1';
head.appendChild(viewport);
style = document.createElement('style');
style.type = 'text/css';
if(style.styleSheet){
style.styleSheet.cssText = css;
}else{
style.appendChild(document.createTextNode(css));
}
head.appendChild(style);
document.body.style.background="#000";
document.body.innerHTML='';
function CookieTime(ToDay){
var d = new Date();
d.setTime(d.getTime()+(ToDay*24*60*60*1000));
return d.toGMTString();
}
function YoncuSecKey(){
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET",location.protocol+'//'+location.host+'/YoncuTest/YoncuSec_Token',false);
xmlHttp.send();
return (xmlHttp.readyState==4 && xmlHttp.status==200 && xmlHttp.responseText.length==32?xmlHttp.responseText.toUpperCase():0);
}
function SSLCheck(){
try{
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET",'https://'+document.domain+'/YoncuTest/YoncuSec_Token',false);
xmlHttp.send();
return (xmlHttp.readyState==4&&xmlHttp.status==200&&xmlHttp.responseText.length==32);
}catch(e){}
return false;
}
function PageRefresh(){
if(location.protocol==='http:'&&SSLCheck()){
setTimeout(function(){location.href=window.location.href.replace(/^http:/,'https:');},600);
location.href=window.location.href.replace(/^http:/,'https:');
}else{
setTimeout('window.location.reload(true);',600);
location.reload(true);
}
return true;
}
function ThisDomain(){
return document.domain.replace(/^www\./g, '');
}
function delCookie(cname){
document.cookie = cname+"=;expires="+CookieTime(-99)+";Path=/";
document.cookie = cname+"=;domain="+ThisDomain()+";expires="+CookieTime(-99)+";Path=/";
document.cookie = cname+"=;domain=."+ThisDomain()+";expires="+CookieTime(-99)+";Path=/";
document.cookie = cname+"=;domain=www."+ThisDomain()+";expires="+CookieTime(-99)+";Path=/";
}
function SetCookie(cname,value){
if(location.protocol === 'https:'){
document.cookie = "__Secure-"+cname+"="+value+";expires="+CookieTime(7)+";Path=/;samesite=none;secure";
document.cookie = cname+"="+value+";expires="+CookieTime(7)+";Path=/;samesite=none;secure";
}else{
document.cookie = "__Host-"+cname+"="+value+";expires="+CookieTime(7)+";Path=/";
document.cookie = cname+"="+value+";expires="+CookieTime(7)+";Path=/";
}
}
function getCookie(cname){
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for(var i = 0; i < ca.length; i++) {
var c = ca[i];
while(c.charAt(0) == ' '){
c = c.substring(1);
}
if(c.indexOf(name) == 0){
return c.substring(name.length, c.length);
}
}
return 1;
}
function reCaptchaVerify(response){
if(response === document.querySelector('.g-recaptcha-response').value){
delCookie("YoncuSec");
SetCookie("YoncuSec",YoncuSecKey());
delCookie("YoncuKorumaRisk");
SetCookie("YoncuKorumaRisk",'0');
setTimeout('PageRefresh();',990);
}
}
function reCaptchaExpired(){
delCookie("YoncuSec");
SetCookie("YoncuSec",'2');
setTimeout(grecaptcha.execute(),990);
}
function reCaptchaCallback() {
grecaptcha.render('YoncuSecRC',{
'sitekey': '6LfZFuMZAAAAAIDLTRf6vWNBeaPZqusZOgFkOBtH',
'size': 'invisible',
'callback': reCaptchaVerify,
'expired-callback': reCaptchaExpired
});
grecaptcha.execute();
}
function YoncuSec(Risk){
if(!isFinite(Risk)){
Risk=1;
}
if(window.innerWidth > 50 && window.innerHeight > 50 && !document.hidden){
if(Risk == 2){
var js = document.createElement('script');
js.src = '//www.google.com/recaptcha/api.js?onload=reCaptchaCallback&render=explicit';
head.appendChild(js);
}else{
delCookie("YoncuSec");
SetCookie("YoncuSec",YoncuSecKey());
setTimeout('PageRefresh();',990);
}
}else{
setTimeout("YoncuSec("+Risk+");",990);
}
}
YoncuSec(getCookie('YoncuSec'));