From bd18cefc011dfd6351b45f3b17839869ae9a9892 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 19:22:53 -0800 Subject: [PATCH] Update server.py --- server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.py b/server.py index 4b5a317..d172f66 100644 --- a/server.py +++ b/server.py @@ -9,6 +9,8 @@ from pathlib import Path homefolder = str(Path.home()) import uuid app = Flask(__name__) +@app.route("/robots.txt"): + return Response("User-agent: *\nDisallow: /", mimetype="text/plain") @app.route("/") def root(): return send_file("home.html")