Skip to content

carlospolop-node-apis/node-simplespmacop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Node Simple Spamcop

Use Node to check for malicious IPs in spamcop

Install

npm install simplespamcop

How to use

const simplespamcop = require('simplespamcop');

// Use checkIP(<IP>) to check that IP against projecthoneypot.org
// A promise will be returned
ip = "127.1.1.1";
simplespamcop.checkIP(ip).then(function(result){ 
        console.log(result);
    }, function(err) {
        console.log(err);
});


/*
Outputs examples
{ malicious: true, title: 'Spammer' }
{ malicious: false, title: 'Spammer' }
*/

About

Use Node to check for malicious IPs in spamcop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published