From 50be37804fe6531dc003d647d1e834cc2e840f14 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Wed, 29 May 2024 16:41:34 +0200 Subject: [PATCH] feat: handle commonly scanned routes by bots --- web.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web.py b/web.py index 32e41da..7fcb03f 100755 --- a/web.py +++ b/web.py @@ -41,6 +41,13 @@ def dist(path): def not_found(e): return send_from_directory('dist', '404.html'), 404 +#### Start handling for common routes scanned by bots +@app.route('/empty') +@app.route('/sito/wp-includes/wlwmanifest.xml') +def empty_view(): + content = {'please move along': 'nothing to see here'} + return content, 401 + if __name__ == '__main__': app.run(host='0.0.0.0')