Skip to content
File

Blob: waf/blocked.html

xml70 lines
1<!doctype html>
2<html lang="en">
3<head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <meta name="color-scheme" content="dark">
7 <title>Request blocked · Specter</title>
8 <style nonce="{{.Nonce}}">
9 :root { color-scheme: dark; }
10 * { box-sizing: border-box; }
11 body { margin: 0; background: #221f21; color: #f5f4f4; font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, sans-serif; }
12 ::selection { background: #57bfcd; color: #1b181a; }
13 .page { width: min(38rem, calc(100% - 32px)); margin: clamp(28px, 8vh, 80px) auto 32px; }
14 .brand { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 32px; border-bottom: 1px solid #423f42; }
15 .brand strong { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
16 .brand span { padding-left: 12px; border-left: 1px solid #423f42; color: #a3a1a8; font-size: 13px; }
17 h1 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 26px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
18 h1 svg { width: 26px; height: 26px; flex: none; color: #e9c581; }
19 p { margin: 0; }
20 .lead { max-width: 60ch; color: #a3a1a8; }
21 h2 { margin: 28px 0 8px; font-size: 15px; font-weight: 600; }
22 table { width: 100%; border-collapse: collapse; text-align: left; }
23 th { font-size: 12px; color: #a3a1a8; font-weight: 500; }
24 th, td { border-bottom: 1px solid #423f42; padding: 10px 0; vertical-align: top; }
25 th:first-child, td:first-child { width: 6rem; padding-right: 16px; }
26 code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; font-variant-numeric: tabular-nums; }
27 td code, .reference { user-select: all; }
28 .safeguard { display: block; color: #a3a1a8; font-size: 12px; }
29 dl { margin: 24px 0; }
30 dt { color: #a3a1a8; font-size: 12px; margin-bottom: 4px; }
31 dd { margin: 0 0 16px; }
32 .reference { display: inline-block; padding: 8px 12px; background: #1b181a; border: 1px solid #423f42; border-radius: 6px; overflow-wrap: anywhere; }
33 .help { padding-top: 20px; border-top: 1px solid #423f42; }
34 .owner { margin-top: 8px; color: #a3a1a8; font-size: 13px; }
35 @media (max-width: 420px) { h1 { font-size: 24px; } .brand { margin-bottom: 24px; } }
36 </style>
37</head>
38<body>
39 <div class="page">
40 <header class="brand"><strong>specter</strong><span>Web protection</span></header>
41 <main>
42 <h1>
43 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 3 8 3v5c0 5-8 10-8 10S4 16 4 11V6l8-3Z"/><path d="M9 9l6 6m0-6-6 6"/></svg>
44 Request blocked
45 </h1>
46 <p class="lead">The request matched a security rule and was not forwarded to the application.</p>
47 {{if .Rules}}
48 <h2>Matched rules</h2>
49 <table>
50 <thead><tr><th scope="col">Rule ID</th><th scope="col">Reason</th></tr></thead>
51 <tbody>{{range .Rules}}
52 <tr><td><code>{{.ID}}</code></td><td>{{.Category}}{{if not .Excludable}}<span class="safeguard">Request safeguard</span>{{end}}</td></tr>
53 {{end}}</tbody>
54 </table>
55 {{end}}
56 <dl>
57 <dt>Request ID</dt><dd><code class="reference">{{.RequestID}}</code></dd>
58 <dt>Rules version</dt><dd><code>{{.Version}}</code></dd>
59 </dl>
60 <p class="help">If this looks like a mistake, share the request ID and rule IDs with the site owner.</p>
61 {{if .CanExclude}}
62 <p class="owner">If you manage this hostname, review rule exceptions in your Specter client’s Web protection settings.</p>
63 {{else}}
64 <p class="owner">Request safeguards cannot be disabled through rule exceptions.</p>
65 {{end}}
66 </main>
67 </div>
68</body>
69</html>