New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-spam-referral-blocker

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-spam-referral-blocker

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

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30
increased by172.73%
Maintainers
2
Weekly downloads
 
Created
Source

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

Current list

  • "4webmasters.org",
  • "best-seo-offer.com",
  • "buttons-for-your-website.com"

Keywords

FAQs

Package last updated on 17 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc