Update index.html
Browse files- index.html +42 -17
index.html
CHANGED
@@ -1,19 +1,44 @@
|
|
1 |
-
<!
|
2 |
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
<html>
|
3 |
+
<head>
|
4 |
+
<title>Password Protected Page</title>
|
5 |
+
<style>
|
6 |
+
body {
|
7 |
+
font-family: Arial, sans-serif;
|
8 |
+
}
|
9 |
+
|
10 |
+
#passwordInput {
|
11 |
+
padding: 10px;
|
12 |
+
font-size: 16px;
|
13 |
+
}
|
14 |
+
|
15 |
+
button {
|
16 |
+
padding: 10px 20px;
|
17 |
+
font-size: 16px;
|
18 |
+
}
|
19 |
+
</style>
|
20 |
+
</head>
|
21 |
+
<body>
|
22 |
+
<center>
|
23 |
+
<input type="password" id="passwordInput" placeholder="Enter Password">
|
24 |
+
<button onclick="checkPassword()">Submit</button>
|
25 |
+
<div id="protectedContent" style="display:none;">
|
26 |
+
<!-- Protected content goes here -->
|
27 |
+
<h1>You unlocked the backdoor! Nothing there for now</h1>
|
28 |
+
</div>
|
29 |
+
</center>
|
30 |
+
|
31 |
+
<script>
|
32 |
+
function checkPassword() {
|
33 |
+
const id = "ilikewin93"; // Set your password here
|
34 |
+
const input = document.getElementById("passwordInput").value;
|
35 |
+
|
36 |
+
if (input === id) {
|
37 |
+
document.getElementById("protectedContent").style.display = "block";
|
38 |
+
} else {
|
39 |
+
alert("Incorrect password");
|
40 |
+
}
|
41 |
+
}
|
42 |
+
</script>
|
43 |
+
</body>
|
44 |
</html>
|