Skip to content

Commit

Permalink
fingerprint check, make check less aggressive
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelmhm committed Oct 9, 2024
1 parent 3c01bd5 commit 0a2f46d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spidyquotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def fingerprint_check():
data = request.get_json()
result = data['result']
confidenceScore = result['confidence']['score']
clicked = data.get('clicked')
if confidenceScore >= 0.4 and clicked:
# clicked = data.get('clicked')
if confidenceScore >= 0.4:
response = make_response(jsonify({"allowed": True}))
expire_time = datetime.datetime.utcnow() + datetime.timedelta(seconds=30)
response.set_cookie('score', value=str(confidenceScore),
Expand Down
2 changes: 1 addition & 1 deletion templates/fs-js.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="row">
<div class="col-md-8" id="clickable">
<h2>Our system found something suspicious.</h2>
<h3>Click anywhere button to unlock site access</h3>
<h3>Checking your browser fingerprint now</h3>
</div>


Expand Down

0 comments on commit 0a2f46d

Please sign in to comment.