Skip to content

balbuzar/express-spam-referral-blocker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Blocks referral spam, and sends a 404

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%