summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-08 12:28:48 +0100
committersalmonik <salmonik@tuta.io>2026-11-08 12:28:48 +0100
commit8681fcf565643f67a36cb1fe571fac7843d2b6af (patch)
tree1f022edb267281da0a2fd0fde3b5336293f14cea /scripts
parentweb: match the desktop layout and remove play-money copy (diff)
downloadzagan-bet-8681fcf565643f67a36cb1fe571fac7843d2b6af.tar.gz
zagan-bet-8681fcf565643f67a36cb1fe571fac7843d2b6af.zip
web: disallow crawlers and quiet the game port
Adds robots.txt with Disallow: / plus noindex/X-Robots-Tag on the site and app. The v5 server treats an HTTP request as a malformed frame, closes silently before HELLO, and suppresses the common TLS scanner noise. Deploy now verifies robots.txt.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deploy.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index 0527505..07d65b5 100755
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -161,6 +161,11 @@ for local in "${artifacts[@]}"; do
161 verified=$((verified + 1)) 161 verified=$((verified + 1))
162done 162done
163 163
164curl -fsSL --max-time 30 "$origin/robots.txt" -o "$tmp/robots.txt" \
165 || die "could not fetch robots.txt"
166grep -q "^Disallow: /$" "$tmp/robots.txt" \
167 || die "robots.txt does not disallow crawlers"
168
164curl -fsSL --max-time 30 "$origin/play/" -o "$tmp/play.html" \ 169curl -fsSL --max-time 30 "$origin/play/" -o "$tmp/play.html" \
165 || die "could not fetch the browser app at /play/" 170 || die "could not fetch the browser app at /play/"
166grep -q 'app.js' "$tmp/play.html" || die "/play/ does not reference app.js" 171grep -q 'app.js' "$tmp/play.html" || die "/play/ does not reference app.js"