From 273eec27267246ef4bb3dfa5350e235c3a3f9082 Mon Sep 17 00:00:00 2001 From: Vlad Date: Wed, 7 May 2025 00:29:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20?= =?UTF-8?q?=D1=8D=D0=BD=D0=B4=D0=BF=D0=BE=D0=B8=D0=BD=D1=82=20/rate=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=86=D1=8B=20=D1=81=20=D0=BE=D0=B3=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC=20=D1=87=D0=B0=D1=81=D1=82?= =?UTF-8?q?=D0=BE=D1=82=D1=8B=20=D0=B7=D0=B0=D0=BF=D1=80=D0=BE=D1=81=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app.py b/app.py index 9e51878..cf9aee8 100644 --- a/app.py +++ b/app.py @@ -769,6 +769,14 @@ def ads_txt(): def logo(): return send_file(app_path+"/static/favicon.ico") +@app.route('/rate') +def rate_limit(): + try: + return render_template('rate_limit.html', site=site) + except: + app.logger.error(traceback.format_exc()) + return 'bad request!', 500 + def get_ip(req) -> str: if 'X-Forwarded-For' in req.headers: