Spaces:
Running
Running
Update index.html
Browse files- index.html +29 -18
index.html
CHANGED
@@ -1,19 +1,30 @@
|
|
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 lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Proxy Detection</title>
|
7 |
+
</head>
|
8 |
+
<body>
|
9 |
+
<h1>Proxy Detection Test</h1>
|
10 |
+
<p id="result">Checking for proxy...</p>
|
11 |
+
|
12 |
+
<script>
|
13 |
+
// Function to check if the image fails to load
|
14 |
+
function checkProxy() {
|
15 |
+
var img = new Image();
|
16 |
+
img.onload = function() {
|
17 |
+
document.getElementById('result').innerText = 'No Proxy Detected';
|
18 |
+
};
|
19 |
+
img.onerror = function() {
|
20 |
+
document.getElementById('result').innerText = 'Proxy Detected';
|
21 |
+
};
|
22 |
+
// Using an IP address enclosed in square brackets
|
23 |
+
img.src = 'http://[74.207.246.197]/pic.jpg';
|
24 |
+
}
|
25 |
+
|
26 |
+
// Run the proxy check
|
27 |
+
checkProxy();
|
28 |
+
</script>
|
29 |
+
</body>
|
30 |
</html>
|