feat: Test for referrers
All checks were successful
Build Docker / BuildImage (push) Successful in 56s
All checks were successful
Build Docker / BuildImage (push) Successful in 56s
This commit is contained in:
parent
668dc8683b
commit
ce5ec9aace
@ -120,6 +120,13 @@ def index():
|
|||||||
return render_template('podcast.html')
|
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
|
# Check if cookie is set
|
||||||
if not request.cookies.get('loaded'):
|
if not request.cookies.get('loaded'):
|
||||||
# Set cookie
|
# Set cookie
|
||||||
|
Loading…
Reference in New Issue
Block a user