Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spamcheck

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spamcheck

Uses stopforumspam.com API to compare usernames, emails, and ip addresses to their spam database.

  • 0.0.2-1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
24
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

#node-stopforumspam

Helps weed out spam accounts during signups. Allows you to check usernames, emails and/or ip addresses against stopforumspam.com API.

Installation

npm install spamcheck

Examples

Use in registration page

var sfs = require('spamcheck');  // get our object

// call checkspammer with any mixture of the following properties in the object to check: ['username', 'email', 'password']
sfs.checkSpammer({ip: req.connection.remoteAddress, email: req.body.email}, function(err, isSpammer) {
  if (err) console.log(err);
  
  if (isSpammer) {
    // user is spam, send back a custom status code with nice message or our spammer.
    res.send(452, 'You are listed as a spammer and registration will not continue.');
  } else {  
    // user is not spam, register the user.
    
    // insert into the db, etc.
  }
});

Help

Please visit the stopforumspam.com API documenation to fully understand the way this works.

StopForumSpam.com API

Notes

StopForumSpam.com will allow up to 20,000 API requests daily. If you need more, please see their database page. They provide hourly updates to their database that you can download and work with directly and locally.

StopForumSpam.com API

Keywords

FAQs

Package last updated on 29 Apr 2013

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