notlinking

0.1.0 • Public • Published

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'
}));

Readme

Keywords

Package Sidebar

Install

npm i notlinking

Weekly Downloads

6

Version

0.1.0

License

ISC

Last publish

Collaborators

  • thisislawatts