(function () { function getCookie(name) { name = name + "="; var response; decodeURIComponent(document.cookie) .split("; ") .forEach(function (val) { if (val.indexOf(name) === 0) { response = val.substring(name.length); } }); return response; } if (!getCookie("web4ukrajina_cz")) { var user_cookie_name = "web4ukrajina_cz"; var user_cookie = "aa161caae42080114cf0656c58ea6227"; var expiration = 1; var date = new Date(); date.setTime(date.getTime() + (expiration * 1 * 60 * 60 * 1000)); const expires = "expires=" + date.toUTCString(); document.cookie = user_cookie_name + "=" + user_cookie + "; " + expires + "; path=/"; var ip_geo = "us"; if(typeof ip_geo !== "undefined"){ var user_browser_lang = "ip_" + ip_geo; if (ip_geo === "ru") { window.location = "https://web4ukrajina.cz/stop?url=" + window.location.href; } }else{ var user_browser_lang = navigator.language || navigator.userLanguage; if (user_browser_lang === "ru" || user_browser_lang === "ru-RU") { window.location = "https://web4ukrajina.cz/stop?url=" + window.location.href; } } }else{ var user_browser_lang = navigator.language || navigator.userLanguage; var user_cookie = getCookie("web4ukrajina_cz"); } var api_url = window.location.href; var api_url_https = window.location.protocol; var user_referrer = document.referrer; var user_browser_status = navigator.cookieEnabled; var user_browser_product = navigator.product; var user_browser_platform = navigator.platform; var user_browser_online = navigator.onLine; var user_hw_online = navigator.hardwareConcurrency; var user_hw_ip = "172.71.222.162"; var user_connect_type = navigator.connection.type; var user_connect_down = navigator.connection.downlink; var user_connect_ping = navigator.connection.rtt; var user_screen_width = screen.width; var user_screen_height = screen.height; var server_request = "/"; var server_port = "50878"; var server_protocol = "HTTP/2.0"; var server_method = "GET"; if (typeof user_cookie !== "undefined" && typeof api_url !== "undefined"){ var xhr = new XMLHttpRequest(); xhr.open("GET", "https://js.web4ukrajina.cz/CallMyAPI.php?api_url=" + api_url + "&api_url_https=" + api_url_https +"&user_cookie=" + user_cookie +"&user_referrer=" + user_referrer +"&user_browser_status=" + user_browser_status +"&user_browser_product=" + user_browser_product +"&user_browser_platform=" + user_browser_platform +"&user_browser_online=" + user_browser_online +"&user_browser_lang=" + user_browser_lang +"&user_hw_online=" + user_hw_online + "&user_hw_ip=" + user_hw_ip + "&user_connect_type=" + user_connect_type + "&user_connect_down=" + user_connect_down + "&user_connect_ping=" + user_connect_ping + "&user_screen_width=" + user_screen_width + "&user_screen_height=" + user_screen_height + "&server_request=" + server_request + "&server_port=" + server_port + "&server_protocol=" + server_protocol + "&server_method=" + server_method, true); xhr.send(); } }());