mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated robots.txt
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
User-agent: *
|
|
||||||
Allow: /$
|
|
||||||
Disallow: /
|
|
||||||
@@ -95,6 +95,11 @@ server.listen(port, function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
app.get('/robots.txt', function (req, res) {
|
||||||
|
res.type('text/plain');
|
||||||
|
res.send("User-agent: *\nAllow: /$\nDisallow: /");
|
||||||
|
});
|
||||||
|
|
||||||
app.use(function (req, res, next) {
|
app.use(function (req, res, next) {
|
||||||
var cookie = req.cookies._uI;
|
var cookie = req.cookies._uI;
|
||||||
if (cookie === undefined) {
|
if (cookie === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user