feat: handle commonly scanned routes by bots

This commit is contained in:
Ayo Ayco 2024-05-29 16:41:34 +02:00
parent b3f42122c8
commit 50be37804f

7
web.py
View file

@ -41,6 +41,13 @@ def dist(path):
def not_found(e): def not_found(e):
return send_from_directory('dist', '404.html'), 404 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__': if __name__ == '__main__':
app.run(host='0.0.0.0') app.run(host='0.0.0.0')