From ce5ec9aace9016075ae367cda1263ef3b37f1c06 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 17 Jun 2024 21:47:44 +1000 Subject: [PATCH] feat: Test for referrers --- server.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server.py b/server.py index 11195a2..42056d4 100644 --- a/server.py +++ b/server.py @@ -120,6 +120,13 @@ def index(): return render_template('podcast.html') + # Check if referrer is from handshake + if request.referrer: + print(request.referrer,flush=True) + else: + print("No referrer",flush=True) + + # Check if cookie is set if not request.cookies.get('loaded'): # Set cookie