From d3cd1d5c16fbcd3670886fa8cf84117583f3115b Mon Sep 17 00:00:00 2001 From: zPlus Date: Tue, 12 Dec 2023 10:07:27 +0100 Subject: [PATCH] Set default content for robots.txt --- app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 74bf3ef..7e7062c 100755 --- a/app.py +++ b/app.py @@ -78,7 +78,11 @@ def favicon(): @bottle.get('/robots.txt') def robotstxt(): - return "" + response.content_type = 'text/plain; charset=UTF8' + + return """User-agent: * +Disallow: +""" @bottle.get('/static/', name='static') def static(filename):