Skip to content

Commit aa2ec84

Browse files
committed
New cheat
1 parent 2d4db55 commit aa2ec84

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

components/home.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1862,6 +1862,7 @@ setShowCountryButtons(false)
18621862
useEffect(() => {
18631863
function checkForCheats() {
18641864
if(document.getElementById("coo1rdinates")) return true;
1865+
if(document.getElementById("map-canvas")) return true;
18651866
// try {
18661867
// if(window.localStorage.getItem("banned")) return true;
18671868
// } catch(e) {
@@ -1872,10 +1873,7 @@ setShowCountryButtons(false)
18721873
if(window.banned) return;
18731874
sendEvent("cheat_detected")
18741875
// redirect to banned page
1875-
alert("imagine cheating on a free geography game. L")
1876-
window.location.href = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
1877-
window.banned = true;
1878-
document.write("<h1>You have been banned from playing this game.</h1> If you believe this is a mistake, please contact us at [email protected]")
1876+
window.location.href = "/banned";
18791877
window.localStorage.setItem("banned", "true")
18801878
}
18811879
if(checkForCheats()) {

pages/banned.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
export default function Cheats() {
3+
return (
4+
<div>
5+
<h1
6+
style={{
7+
color: "red",
8+
}}
9+
10+
>Cheats detected!</h1>
11+
<p>You are permanantly banned.</p>
12+
<p>
13+
If you believe this is an error, please contact us at <a href="mailto:[email protected] ">
14+
15+
</p>
16+
</div>
17+
)
18+
}

0 commit comments

Comments
 (0)