-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome-evil.html
More file actions
28 lines (26 loc) · 797 Bytes
/
home-evil.html
File metadata and controls
28 lines (26 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<head>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
</head>
<body>
<div class="jumbotron d-flex align-items-center min-vh-100">
<div class="container text-center text-danger">
<h1>Hello fake world</h1>
<p>Refered from: <span id="referer"></span></p>
<h2><a href="page.html">Go to page 1</a></h2>
</div>
</div>
</body>
<script>
urlParams = window.location.search.substr(1);
refererEl = document.getElementById("referer");
if (urlParams != "") {
console.log("referer: " + window.location.search.substr(1));
refererEl.innerHTML = window.location.search.substr(1);
history.pushState({}, null, "home.html");
//window.location.href = "home-evil.html";
} else {
}
</script>