1.0.5 • Published 6 years ago

fraudguard v1.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Node Fraudguard

Use Node to check for malicious IPs in fraudguard

Install

npm install fraudguard

How to use

const fraudguard = require('fraudguard');

fraudguard.setUser("<YOU USER>")
fraudguard.setPassword("<YOUR PASSWORD>")

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


/*
Output example
{ isocode: 'AU',
  country: 'Australia',
  state: 'unknown',
  city: 'unknown',
  discover_date: '2017-09-06 01:59:58',
  threat: 'botnet_tracker',
  risk_level: '5' }
*/