Proxy-Detector / index.html
memex-in's picture
Update index.html
3cd8103 verified
raw
history blame
971 Bytes
<!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://www.example.com/some-image.jpg'; // Replace with a valid image URL
}
checkProxy();
</script>
</body>
</html>