From ad6982e77e1948bd7b74538af0c5a24120a38370 Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Tue, 21 Jun 2016 21:37:56 +0800 Subject: Remove robot meta on note edit page and html template, add prevent crawling header to enhance note privacy --- lib/response.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/response.js') 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); } -- cgit v1.2.3