home » dokk/dokk.org.git
Author zPlus <zplus@peers.community> 2023-12-12 09:07:27
Committer zPlus <zplus@peers.community> 2023-12-12 09:07:27
Commit d3cd1d5 (patch)
Tree 44f64e9
Parent(s)

Set default content for robots.txt


commits diff: b7a2011..d3cd1d5
1 file changed, 5 insertions, 1 deletiondownload


Diffstat
-rwxr-xr-x app.py 6

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+5/-1 M   app.py
index 74bf3ef..7e7062c
old size: 12K - new size: 12K
@@ -78,7 +78,11 @@ def favicon():
78 78
79 79 @bottle.get('/robots.txt')
80 80 def robotstxt():
81 - return ""
81 + response.content_type = 'text/plain; charset=UTF8'
82 +
83 + return """User-agent: *
84 + Disallow:
85 + """
82 86
83 87 @bottle.get('/static/<filename:path>', name='static')
84 88 def static(filename):