diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-08 12:28:48 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-08 12:28:48 +0100 |
| commit | 8681fcf565643f67a36cb1fe571fac7843d2b6af (patch) | |
| tree | 1f022edb267281da0a2fd0fde3b5336293f14cea /scripts/deploy.sh | |
| parent | web: match the desktop layout and remove play-money copy (diff) | |
| download | zagan-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/deploy.sh')
| -rwxr-xr-x | scripts/deploy.sh | 5 |
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)) |
| 162 | done | 162 | done |
| 163 | 163 | ||
| 164 | curl -fsSL --max-time 30 "$origin/robots.txt" -o "$tmp/robots.txt" \ | ||
| 165 | || die "could not fetch robots.txt" | ||
| 166 | grep -q "^Disallow: /$" "$tmp/robots.txt" \ | ||
| 167 | || die "robots.txt does not disallow crawlers" | ||
| 168 | |||
| 164 | curl -fsSL --max-time 30 "$origin/play/" -o "$tmp/play.html" \ | 169 | curl -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/" |
| 166 | grep -q 'app.js' "$tmp/play.html" || die "/play/ does not reference app.js" | 171 | grep -q 'app.js' "$tmp/play.html" || die "/play/ does not reference app.js" |
