repel bots on unconfirm url.

This commit is contained in:
fiatjaf 2018-09-18 21:15:25 +00:00
parent d073748885
commit bd82e2f90b
1 changed files with 5 additions and 0 deletions

View File

@ -383,6 +383,11 @@ def request_unconfirm_form(form_id):
This endpoints triggers a confirmation email that directs users to the
GET version of unconfirm_form.
'''
# repel bots
if not request.user_agent.browser:
return ''
form = Form.query.get(form_id)
unconfirm_url = url_for(