feat: Test for referrers
All checks were successful
Build Docker / BuildImage (push) Successful in 56s

This commit is contained in:
Nathan Woodburn 2024-06-17 21:47:44 +10:00
parent 668dc8683b
commit ce5ec9aace
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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