Remove robot meta on note edit page and html template, add prevent crawling header to enhance note privacy

This commit is contained in:
Cheng-Han, Wu
2016-06-21 21:37:56 +08:00
parent 949f26a0d1
commit ad6982e77e
4 changed files with 2 additions and 19 deletions

View File

@@ -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);
}