aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html138
1 files changed, 138 insertions, 0 deletions
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..20c30cc
--- /dev/null
+++ b/index.html
@@ -0,0 +1,138 @@
+<!DOCTYPE html>
+<html lang="ru">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Доступ ограничен | Защита WAF</title>
+ <style>
+ :root {
+ --bg-color: #111217;
+ --card-color: #1c1d24;
+ --text-main: #f3f4f6;
+ --text-muted: #9ca3af;
+ --accent-color: #ff453a;
+ --code-bg: #0f1014;
+ }
+ * { box-sizing: border-box; margin: 0; padding: 0; }
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
+ background-color: var(--bg-color);
+ color: var(--text-main);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ min-height: 100vh;
+ padding: 20px;
+ }
+ .waf-container {
+ max-width: 650px;
+ width: 100%;
+ background-color: var(--card-color);
+ padding: 40px;
+ border-radius: 12px;
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
+ border-top: 4px solid var(--accent-color);
+ }
+ .header { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
+ .icon {
+ width: 48px;
+ height: 48px;
+ background-color: rgba(255, 69, 58, 0.1);
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: var(--accent-color);
+ font-size: 24px;
+ font-weight: bold;
+ }
+ h1 { font-size: 24px; font-weight: 600; color: var(--text-main); }
+ p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-bottom: 20px; }
+ .info-panel {
+ background-color: var(--code-bg);
+ border-left: 4px solid var(--accent-color);
+ padding: 20px;
+ border-radius: 4px;
+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
+ font-size: 14px;
+ margin-bottom: 24px;
+ position: relative;
+ }
+ .info-row { display: flex; margin-bottom: 8px; }
+ .info-row:last-child { margin-bottom: 0; }
+ .info-label { width: 140px; color: var(--text-muted); font-weight: bold; }
+ .info-value { color: #30d158; word-break: break-all; }
+ .btn-copy {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+ background-color: transparent;
+ border: 1px solid #3a3b45;
+ color: var(--text-main);
+ padding: 10px 16px;
+ font-size: 14px;
+ border-radius: 6px;
+ cursor: pointer;
+ transition: all 0.2s ease;
+ }
+ .btn-copy:hover { background-color: #252630; border-color: var(--text-muted); }
+ .footer { font-size: 12px; color: #525866; margin-top: 32px; border-top: 1px solid #282932; padding-top: 16px; text-align: center; }
+ </style>
+</head>
+<body>
+
+<div class="waf-container">
+ <div class="header">
+ <div class="icon">🛑</div>
+ <h1>Error 1020: Access Denied</h1>
+ </div>
+
+ <p>Ваш запрос был автоматически заблокирован глобальным контуром безопасности Web Application Firewall (WAF). Система зафиксировала аномальное поведение, нарушающее установленные политики сетевой защиты.</p>
+
+ <div class="info-panel" id="incident-data">
+ <div class="info-row">
+ <div class="info-label">Your IP:</div>
+ <!--# if expr="$sent_http_x_waf_client_ip" -->
+ <div class="info-value"><!--# echo var="sent_http_x_waf_client_ip" --></div>
+ <!--# else -->
+ <div class="info-value">Protected Context</div>
+ <!--# endif -->
+ </div>
+ <div class="info-row">
+ <div class="info-label">WAF Ray ID:</div>
+ <!--# if expr="$sent_http_x_waf_ray_id" -->
+ <div class="info-value"><!--# echo var="sent_http_x_waf_ray_id" --></div>
+ <!--# else -->
+ <div class="info-value">N/A</div>
+ <!--# endif -->
+ </div>
+ <div class="info-row">
+ <div class="info-label">Block Reason:</div>
+ <!--# if expr="$sent_http_x_waf_block_module" -->
+ <div class="info-value"><!--# echo var="sent_http_x_waf_block_module" --></div>
+ <!--# else -->
+ <div class="info-value">security_rule_match</div>
+ <!--# endif -->
+ </div>
+ </div>
+
+ <button class="btn-copy" onclick="copyIncidentData()">📋 Скопировать данные инцидента</button>
+
+ <p class="footer">Если вы считаете, что блокировка произошла ошибочно, пожалуйста, скопируйте данные инцидента и передайте их системному администратору вашей экосистемы для внесения в белый список.</p>
+</div>
+
+<script>
+function copyIncidentData() {
+ const text = document.getElementById('incident-data').innerText;
+ navigator.clipboard.writeText(text).then(() => {
+ const btn = document.querySelector('.btn-copy');
+ const oldText = btn.innerHTML;
+ btn.innerHTML = '✅ Данные скопированы!';
+ setTimeout(() => { btn.innerHTML = oldText; }, 2000);
+ }).catch(err => {
+ alert('Не удалось скопировать. Пожалуйста, выделите текст вручную.');
+ });
+}
+</script>
+</body>
+</html>