0.1.0 • Published 8 years ago

notlinking v0.1.0

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

Not Linking

Hot linking getting you down? Stop them linking with Not Linking.

This tiny express module checks the Referrer and makes sure that this file is only be referenced by the server it's hosted on.

Installation

npm install notlinking

Usage

const express = require('express');
const notlinking = require('notlinking');

app.use(notlinking());

// Available options
app.use(notlinking({
	foundryUrl : 'http://yourfavourite.foundry',
	message    : 'Customisable message for would be thieves'
}));