Hot linking getting you down? Stop them linking with Not Linking.
Originally built to offer a layer of protection for font files which are available for self hosting.
This tiny slice of middleware for express checks a request and makes sure that this file is only available if the Referrer
matches the current server's address.
npm install notlinking
const express = require('express');
const notlinking = require('notlinking');
app.use(notlinking());
// Available options
app.use(notlinking({
pattern : /regex/,
publisherUrl : 'http://example.com',
message : 'Customisable message for would be thieves'
}));