Skip to content

Node.js based forum software built for the modern web

Add Disallow: /compose to robots.txt

Ricki Hirner0a662e488200
diff --git a/src/controllers/index.js b/src/controllers/index.js
index 08c9cec157..494b0e9f02 100644
--- a/src/controllers/index.js
+++ b/src/controllers/index.js
@@ -252,6 +252,7 @@ Controllers.robots = function (req, res) {
res.send('User-agent: *\n' +
'Disallow: ' + nconf.get('relative_path') + '/admin/\n' +
'Disallow: ' + nconf.get('relative_path') + '/reset/\n' +
+ 'Disallow: ' + nconf.get('relative_path') + '/compose\n' +
'Sitemap: ' + nconf.get('url') + '/sitemap.xml');
}
};