Massive v2 rewrite

This commit is contained in:
Caileb 2025-08-02 15:34:04 -05:00
parent 1025f3b523
commit 5f1328f626
77 changed files with 28105 additions and 3542 deletions

View file

@ -3,8 +3,7 @@ let isModalOpen = false;
let pendingAction = null; // Can be 'success' or 'error'
let storedErrorMessage = '';
let storedRedirectUrl = '';
// let redirectToken = ''; // This was defined but not used, removing for now.
const REDIRECT_DELAY = 1488; // Moved for wider accessibility
const REDIRECT_DELAY = 1488;
function workerFunction() {
self.onmessage = function (e) {
@ -236,11 +235,6 @@ document.addEventListener('DOMContentLoaded', function () {
errorDetails.style.display = 'block';
}
// Ensure any running workers are stopped on error
// This might need to be called from within Verifier's scope or Verifier needs a public method
// For now, if terminateWorkers is global or accessible, it would be called.
// However, terminateWorkers is defined within Verifier. This needs careful handling.
// Let's assume for now the original placement inside Verifier handles termination on actual error progression.
// The primary goal here is to show the UI error state.
}
function initVerification() {

View file

@ -1 +1,104 @@
Blocked (Datacenter)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Access Denied - Datacenter Restriction</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
color: #333;
line-height: 1.6;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container {
max-width: 500px;
margin: 0 20px;
}
.card {
background: white;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
padding: 40px;
text-align: center;
}
.icon {
width: 80px;
height: 80px;
margin: 0 auto 20px;
background: #4facfe;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.icon svg {
width: 40px;
height: 40px;
fill: white;
}
h1 {
font-size: 24px;
margin-bottom: 16px;
color: #2c3e50;
}
.message {
color: #666;
margin-bottom: 24px;
font-size: 16px;
}
.reason {
background: #f8f9fa;
padding: 16px;
border-radius: 8px;
border-left: 4px solid #4facfe;
margin: 20px 0;
text-align: left;
}
.reason-title {
font-weight: 600;
color: #2c3e50;
margin-bottom: 8px;
}
.contact {
margin-top: 24px;
font-size: 14px;
color: #666;
}
.server-icon {
font-size: 32px;
margin-bottom: 16px;
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<div class="server-icon">🖥️</div>
<div class="icon">
<svg viewBox="0 0 24 24">
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</svg>
</div>
<h1>Access Denied</h1>
<p class="message">Access from datacenter or cloud hosting providers is restricted.</p>
<div class="reason">
<div class="reason-title">Datacenter Policy</div>
<div>This service blocks access from known datacenter, cloud hosting, and VPN provider IP ranges to prevent automated abuse and maintain service quality for residential users.</div>
</div>
<div class="contact">
<p>If you're accessing this service legitimately and need datacenter access for business purposes, please contact our support team for whitelisting consideration.</p>
</div>
</div>
</div>
</body>
</html>

View file

@ -1 +1,98 @@
Blocked (Default)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Access Denied - Geographic Restriction</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #333;
line-height: 1.6;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container {
max-width: 500px;
margin: 0 20px;
}
.card {
background: white;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
padding: 40px;
text-align: center;
}
.icon {
width: 80px;
height: 80px;
margin: 0 auto 20px;
background: #ff6b6b;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.icon svg {
width: 40px;
height: 40px;
fill: white;
}
h1 {
font-size: 24px;
margin-bottom: 16px;
color: #2c3e50;
}
.message {
color: #666;
margin-bottom: 24px;
font-size: 16px;
}
.reason {
background: #f8f9fa;
padding: 16px;
border-radius: 8px;
border-left: 4px solid #ff6b6b;
margin: 20px 0;
text-align: left;
}
.reason-title {
font-weight: 600;
color: #2c3e50;
margin-bottom: 8px;
}
.contact {
margin-top: 24px;
font-size: 14px;
color: #666;
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<div class="icon">
<svg viewBox="0 0 24 24">
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/>
</svg>
</div>
<h1>Access Denied</h1>
<p class="message">We're sorry, but access from your location is currently restricted.</p>
<div class="reason">
<div class="reason-title">Geographic Restriction</div>
<div>This service has geographic access restrictions in place. Access from your location or network provider is not permitted at this time.</div>
</div>
<div class="contact">
<p>If you believe this is an error or you have questions about access, please contact support.</p>
</div>
</div>
</div>
</body>
</html>

View file

@ -1 +1,104 @@
Blocked (India)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Access Denied - Geographic Restriction</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
color: #333;
line-height: 1.6;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container {
max-width: 500px;
margin: 0 20px;
}
.card {
background: white;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
padding: 40px;
text-align: center;
}
.icon {
width: 80px;
height: 80px;
margin: 0 auto 20px;
background: #ff6b6b;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.icon svg {
width: 40px;
height: 40px;
fill: white;
}
h1 {
font-size: 24px;
margin-bottom: 16px;
color: #2c3e50;
}
.message {
color: #666;
margin-bottom: 24px;
font-size: 16px;
}
.reason {
background: #f8f9fa;
padding: 16px;
border-radius: 8px;
border-left: 4px solid #ff6b6b;
margin: 20px 0;
text-align: left;
}
.reason-title {
font-weight: 600;
color: #2c3e50;
margin-bottom: 8px;
}
.contact {
margin-top: 24px;
font-size: 14px;
color: #666;
}
.flag {
font-size: 32px;
margin-bottom: 16px;
}
</style>
</head>
<body>
<div class="container">
<div class="card">
<div class="flag">🇮🇳</div>
<div class="icon">
<svg viewBox="0 0 24 24">
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/>
</svg>
</div>
<h1>Access Denied</h1>
<p class="message">Access from India is currently restricted due to security policies.</p>
<div class="reason">
<div class="reason-title">Regional Security Policy</div>
<div>This service has implemented geographic access restrictions. Access from Indian IP addresses is currently blocked due to security and compliance requirements.</div>
</div>
<div class="contact">
<p>If you believe this restriction affects you unfairly or you have questions about access policies, please contact our support team.</p>
</div>
</div>
</div>
</body>
</html>

File diff suppressed because it is too large Load diff