-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkpoint.html
40 lines (38 loc) · 1.45 KB
/
checkpoint.html
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
29
30
31
32
33
34
35
36
37
38
39
40
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IP Redirect</title>
</head>
<body>
<h1 style="text-align: center;">You are being redirected</h1>
<div style="text-align: center;">
<script>
document.addEventListener("DOMContentLoaded", function() {
// Fetch user's IP address
fetch('https://api.ipify.org/?format=json')
.then(response => response.json())
.then(data => {
const ipAddress = data.ip;
// Fetch IP details
fetch(`https://api.ipstack.com/${ipAddress}?access_key=dc636aa2bdb6431961ac16273ebaf3d1`)
.then(response => response.json())
.then(data => {
const countryCode = data.country_code;
// Redirect if country code is not GB
if (countryCode !== 'GB') {
window.location.href = 'https://blitzd.uk/gatekeeper'; // Redirect URL here
}
})
.catch(error => {
console.error('Error fetching IP details:', error);
});
})
.catch(error => {
console.error('Error fetching IP address:', error);
});
});
</script>
<script src="https://blitzd.uk/snitch.js"></script></div>
</body>
</html>