From 24a2c748cd48d3033fe602f7d5f3764a3bf533c3 Mon Sep 17 00:00:00 2001 From: Christoph Wiechert Date: Fri, 5 May 2017 20:57:20 +0200 Subject: [PATCH] Added: meta-tags and robots.txt to prevent search engine indexing --- lib/endpoints.js | 4 ++++ public/html/download.html | 1 + public/html/error.html | 1 + public/html/upload.html | 1 + public/robots.txt | 2 ++ 5 files changed, 9 insertions(+) create mode 100644 public/robots.txt diff --git a/lib/endpoints.js b/lib/endpoints.js index 734f17a..f618729 100644 --- a/lib/endpoints.js +++ b/lib/endpoints.js @@ -31,6 +31,10 @@ if(config.accessLog) { app.use('/app', express.static(path.join(__dirname, '../public/app'))); app.use('/assets', express.static(path.join(__dirname, '../public/assets'))); +// robots.txt +app.get('/robots.txt', (req, res) => { + res.sendFile(path.join(__dirname, '../public/robots.txt')); +}); // Upload App app.get('/', (req, res) => { diff --git a/public/html/download.html b/public/html/download.html index 08fe374..a6b8321 100644 --- a/public/html/download.html +++ b/public/html/download.html @@ -5,6 +5,7 @@ PsiTransfer +