<div id="safeBox" style="text-align:center; margin-top:20px;">
<div id="timerText">Checking source...</div>
<a id="downloadBtn" href="#" style="display:none; padding:10px 20px; background:red; color:#fff; text-decoration:none;">Get Link</a>
</div>
<script>
function startTimer() {
let timeLeft = 10;
let timerText = document.getElementById("timerText");
let btn = document.getElementById("downloadBtn");
let timer = setInterval(function(){
timerText.innerHTML = "Please wait " + timeLeft + " seconds...";
timeLeft--;
if(timeLeft < 0){
clearInterval(timer);
timerText.style.display = "none";
btn.style.display = "inline-block";
let finalLink = localStorage.getItem("finalLink");
if(finalLink){
btn.href = finalLink;
}
}
},1000);
}
window.onload = function(){
if(document.referrer.includes("google")){
startTimer();
} else {
document.getElementById("timerText").innerHTML = "Access denied. Please use Google search.";
}
}
</script>
Posts