From f7c412882a06aff12b24f8f4c9665dfcee273a45 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 12 Feb 2018 11:13:55 -0500 Subject: [PATCH] add reset routes to robots.txt disallow --- src/controllers/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/index.js b/src/controllers/index.js index 6e82dbf4a2..f6bfc322f4 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -233,6 +233,7 @@ Controllers.robots = function (req, res) { } else { res.send('User-agent: *\n' + 'Disallow: ' + nconf.get('relative_path') + '/admin/\n' + + 'Disallow: ' + nconf.get('relative_path') + '/reset/\n' + 'Sitemap: ' + nconf.get('url') + '/sitemap.xml'); } };