Limit what a tracker can make the page do, recommend anti-framing headers
A tracker message over 64 KiB isn't parsed, before acceptance it rejects the tracker like a failure reason. Beyond 20 messages per 10 s the rest is dropped, so a tracker can't keep the page parsing and decrypting. What a tracker makes a socket log goes through one note: each line once, at most 10 per socket. The log keeps the last 1000 lines in a shallow ref and says how many went. index.html sets Referrer-Policy itself, the README recommends the headers a <meta> can't set: frame-ancestors, X-Frame-Options and nosniff. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b102e55495
commit
7f4811485a
7 files changed
+151
-31
No files matched your search
@@ -116,6 +116,18 @@ Then serve the `dist/` folder, with these requirements:
|
||||
- **`sw.js` next to `index.html`.** It streams the downloads. Requests to the `download/` path below
|
||||
HellCon must reach it unchanged, so don't rewrite them to `index.html`.
|
||||
|
||||
Recommended, as response headers, a `<meta>` can't set them (`index.html` sets
|
||||
`Referrer-Policy: no-referrer` itself):
|
||||
|
||||
```
|
||||
Content-Security-Policy: frame-ancestors 'none'
|
||||
X-Frame-Options: DENY
|
||||
X-Content-Type-Options: nosniff
|
||||
```
|
||||
|
||||
The first two keep other sites from framing HellCon and laying their own page over its buttons,
|
||||
`X-Frame-Options` for older browsers.
|
||||
|
||||
Your own tracker and STUN server are optional, any public ones work. `backend/` has both as Docker
|
||||
Compose services: a tracker that only does what HellCon needs, with an Origin allowlist and limits,
|
||||
and coturn as STUN server. `backend/compose.yaml` says how to set them up.
|
||||
|
||||
Reference in new issue
Block a user