Site password set pest kro Head ke uper
<script>
(function () {
var correctPassword = "1234"; // 👈 apna password yahan likho
function askPassword() {
var userPass = prompt("Enter Password to Open Site:");
// Agar user Cancel kare
if (userPass === null) {
askPassword();
return;
}
// Agar password galat ho
if (userPass !== correctPassword) {
alert("Wrong Password! Try Again.");
askPassword(); // 🔁 Retry option
}
}
// Page load par password pucho
askPassword();
})();
</script>
Comments
Post a Comment