Files
CLOAK/resources/fingerprint_redirect.html.php
T

43 lines
857 B
PHP
Raw Normal View History

2026-06-14 14:00:24 +08:00
<!doctype html>
<html>
<head>
<script>
function location_load() {
var urlParams = new URLSearchParams(window.location.search);
// URL 已含 time 表示指纹跳转已完成,不再重复重定向
if (urlParams.has('time')) {
return;
}
var url = location.href;
if(url.indexOf('?') != -1){
url += '&time='+((new Date()).getTime())
}else{
url += '?time='+((new Date()).getTime())
}
goTo(url);
}
function goTo(url){
var ua = navigator.userAgent;
if(ua.indexOf('MSIE')>=0){
var rl = document.createElement('a');
rl.href= url;
document.body.appendChild(rl);
rl.click();
}else{
location.href = url;
}
}
window.__cloakFingerprintDone = location_load;
</script>
<script src="/dist/?c={{CONFIG_NAME}}"></script>
</head>
<body>
</body>
</html>