diff --git a/frontend/public/robots.txt b/frontend/public/robots.txt new file mode 100644 index 0000000000000000000000000000000000000000..77470cb39f05f70a5b709b68304d0756bab75a0d --- /dev/null +++ b/frontend/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / \ No newline at end of file diff --git a/server/index.js b/server/index.js index 5b22cca9173cb29c2195cf4d13a7207f1f1256e5..01473d111e3acb38a2ff9991be1d0e21ef7cabaa 100644 --- a/server/index.js +++ b/server/index.js @@ -77,6 +77,11 @@ if (process.env.NODE_ENV !== "development") { app.use("/", function (_, response) { response.sendFile(path.join(__dirname, "public", "index.html")); }); + + app.get("/robots.txt", function (_, response) { + response.type("text/plain"); + response.send("User-agent: *\nDisallow: /").end(); + }); } app.use(