aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: 20c30cc26fb53a0bdf69134d68ed6ad55eaea5a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
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>