mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
add reset routes to robots.txt disallow
This commit is contained in:
@@ -233,6 +233,7 @@ Controllers.robots = function (req, res) {
|
|||||||
} else {
|
} else {
|
||||||
res.send('User-agent: *\n' +
|
res.send('User-agent: *\n' +
|
||||||
'Disallow: ' + nconf.get('relative_path') + '/admin/\n' +
|
'Disallow: ' + nconf.get('relative_path') + '/admin/\n' +
|
||||||
|
'Disallow: ' + nconf.get('relative_path') + '/reset/\n' +
|
||||||
'Sitemap: ' + nconf.get('url') + '/sitemap.xml');
|
'Sitemap: ' + nconf.get('url') + '/sitemap.xml');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user