summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-06-21 21:37:56 +0800
committerCheng-Han, Wu2016-06-21 21:37:56 +0800
commitad6982e77e1948bd7b74538af0c5a24120a38370 (patch)
tree32af1b24bf867f0a29f4b062cc250de4cb65f900 /lib
parent949f26a0d150996e408d407dd7540c4c736073f0 (diff)
Remove robot meta on note edit page and html template, add prevent crawling header to enhance note privacy
Diffstat (limited to '')
-rw-r--r--lib/response.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/response.js b/lib/response.js
index 3064d321..5d7fc0a1 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -123,7 +123,6 @@ function responseHackMD(res, note) {
url: config.serverurl,
title: title,
useCDN: config.usecdn,
- robots: (meta && meta.robots) || false, //default allow robots
facebook: config.facebook,
twitter: config.twitter,
github: config.github,
@@ -135,7 +134,8 @@ function responseHackMD(res, note) {
res.writeHead(200, {
'Content-Type': 'text/html; charset=UTF-8',
'Cache-Control': 'private',
- 'Content-Length': buf.length
+ 'Content-Length': buf.length,
+ 'X-Robots-Tag': 'noindex, nofollow' // prevent crawling
});
res.end(buf);
}