mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-02 17:32:50 +08:00
Optional Cloudflare Turnstile bot check before connecting
With TURNSTILE_SITE_KEY and TURNSTILE_SECRET set, the gateway answers a connect without a valid pass with "turnstileRequired". The browser solves the (usually invisible) check and resends the connect with the token; the gateway verifies it and hands out a pass bound to the client IP for 12 h, so reconnects and new tabs skip the check. Off by default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
4e04ddb526
commit
e19ced1bd1
11 files changed
+182
-11
No files matched your search
@@ -5915,3 +5915,12 @@ input.ts-identities-uid {
|
||||
.ts-app.ts-mobile.ts-design-ide .ts-tree-panel {
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
/* Cloudflare Turnstile: empty unless Cloudflare wants an interaction. */
|
||||
.ts-turnstile {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 10000;
|
||||
}
|
||||
Reference in new issue
Block a user