express-spam-referral-blocker

1.2.1 • Public • Published

express-spam-referral-blocker Build Status

Express middleware that blocks referral spam, and sends a 404.

Usage

install

npm install express-spam-referral-blocker --save

use middleware

var spamBlocker = require('express-spam-referral-blocker');
app.use(spamBlocker.send404);

Advanced Usage

Replace list of referals to block

spamBlocker.setReferrers(['google.com', 'yahoo.com']);

Add to list of referals to block

spamBlocker.addToReferrers(['google.com', 'yahoo.com']);

Spammers list

Uses community-contributed list of referrer spammers maintained by Piwik, and allows to use custom list as addition to it.

Contribute

Update and add tests to tests/**/*.spec.js
Pull requests will verify that tests pass

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.1
    1
  • 1.2.0
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i express-spam-referral-blocker

Weekly Downloads

1

Version

1.2.1

License

MIT

Last publish

Collaborators

  • bjoshuanoah
  • etanlubeck