diff options
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/dnt.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server/middlewares/dnt.ts b/server/middlewares/dnt.ts new file mode 100644 index 000000000..cabad39c6 --- /dev/null +++ b/server/middlewares/dnt.ts | |||
@@ -0,0 +1,13 @@ | |||
1 | import * as ipaddr from 'ipaddr.js' | ||
2 | import { format } from 'util' | ||
3 | |||
4 | const advertiseDoNotTrack = (_, res, next) => { | ||
5 | res.setHeader('Tk', 'N') | ||
6 | return next() | ||
7 | } | ||
8 | |||
9 | // --------------------------------------------------------------------------- | ||
10 | |||
11 | export { | ||
12 | advertiseDoNotTrack | ||
13 | } | ||