Proxy-Detector / index.html
memex-in's picture
Update index.html
44d8eb6 verified
<!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>