Proxy-Detector / index.html
memex-in's picture
Update index.html
a7c6f05 verified
raw
history blame
800 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 to check if the image fails to load
function checkProxy() {
var img = new Image();
img.onload = function() {
document.getElementById('result').innerText = 'No Proxy Detected';
};
img.onerror = function() {
document.getElementById('result').innerText = 'Proxy Detected';
};
// Using an IP address enclosed in square brackets
img.src = 'http://[74.207.246.197]/pic.jpg';
}
// Run the proxy check
checkProxy();
</script>
</body>
</html>