Skip to content

Commit

Permalink
feat: added X-Robots-Tag noindex header
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jan 8, 2023
1 parent 994d7c5 commit 64d6a41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ class ProxyServer {
});
else
router.use((request, response) => {
response.end();
// X-Robots-Tag
// <https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag>
response.writeHead(200, {
'X-Robots-Tag': 'noindex'
});
response.end('OK');
});

const createServer = this.config.proxyProtocol
Expand Down

0 comments on commit 64d6a41

Please sign in to comment.