Spaces:
Running
Running
File size: 1,044 Bytes
a7c6f05 3cd8103 a7c6f05 3cd8103 a7c6f05 3cd8103 a7c6f05 3cd8103 a7c6f05 3cd8103 44d8eb6 a7c6f05 17d2dee |
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 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Proxy Detection</title>
</head>
<body>
<h1>Proxy Detection Test</h1>
<p id="result">Checking for proxy...</p>
<script>
function checkProxy() {
var img = new Image();
var timeout = 5000; // 5 seconds timeout
var timer;
img.onload = function() {
clearTimeout(timer);
document.getElementById('result').innerText = 'No Proxy Detected';
};
img.onerror = function() {
clearTimeout(timer);
document.getElementById('result').innerText = 'Proxy Detected';
};
timer = setTimeout(function() {
document.getElementById('result').innerText = 'Proxy Detection Timed Out';
}, timeout);
img.src = 'https://images.pexels.com/photos/7454367/pexels-photo-7454367.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2'; // Replace with a valid image URL
}
checkProxy();
</script>
</body>
</html>
|