diff --git a/deploy/wizwar-rollup.sh b/deploy/wizwar-rollup.sh index b39bdd4..7ec67ae 100755 --- a/deploy/wizwar-rollup.sh +++ b/deploy/wizwar-rollup.sh @@ -69,7 +69,10 @@ for f in sorted(glob.glob("/var/lib/caddy/access*.log*")): m = re.match(r"https?://([^/]+)", ref) host = m.group(1) if m else "" ours = host.endswith("kestrelsnest.social") or "104.236.96.198" in host - if host and not ours and not isbot: refs[host] += 1 + # A referrer on /.env is a scanner's costume (a forged google.com), + # not a reader — and the app answers unknown paths with the page, + # so the status cannot tell them apart. Only the pages count. + if host and not ours and not isbot and key in ("/", "/clips", "/watch"): refs[host] += 1 # --- the table --- new_rooms = 0; seats = collections.Counter()