From f622e1e1816174b2fbcb6524f35ecb8e76a9691b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sun, 11 Aug 2013 16:57:39 +0200 Subject: [PATCH] And a robots.txt for good measure... --- octoprint/server.py | 4 ++++ octoprint/static/robots.txt | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 octoprint/static/robots.txt diff --git a/octoprint/server.py b/octoprint/server.py index 0fc08c71..8d2287d7 100644 --- a/octoprint/server.py +++ b/octoprint/server.py @@ -174,6 +174,10 @@ def index(): gitCommit=commit ) +@app.route("/robots.txt") +def robotsTxt(): + return send_from_directory(app.static_folder, "robots.txt") + #~~ Printer control @app.route(BASEURL + "control/connection/options", methods=["GET"]) diff --git a/octoprint/static/robots.txt b/octoprint/static/robots.txt new file mode 100644 index 00000000..1f53798b --- /dev/null +++ b/octoprint/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /