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: