summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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);
}