From 1a218503f2e72b37a40761bd55c460fb11c041e2 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 29 Nov 2022 12:39:49 -0700 Subject: [PATCH] Add robots.txt --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 16c5b7f..971d3ee 100644 --- a/index.js +++ b/index.js @@ -286,6 +286,10 @@ app.get('/', (req, res) => { })); }); +// Basic robots.txt, deny all +app.get('/robots.txt', (req, res) => { + res.send("User-agent: *\nDisallow: /"); +}); app.listen(port, () => { console.log(`${colors.cyan(`[INFO ${new Date()}]`)} Server started on port ${port}`);