Skip to content

Commit 83213cd

Browse files
committed
Disallow scratch papers to be crawled by robots
1 parent 0ffee2e commit 83213cd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const path = require('path');
12
const express = require('express');
23
const app = express();
34

@@ -18,6 +19,9 @@ app.use((req, res, next) => {
1819
next();
1920
}
2021
});
22+
app.get('/robots.txt', (req, res) => {
23+
res.sendFile(path.resolve(__dirname, '..', 'robots.txt'));
24+
});
2125
app.use(apiEndpoint, backend);
2226
app.use(frontend);
2327

robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow: /scratch-paper/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy