fortiguard

1.0.3 • Public • Published

Node Fortiguard

Check in Node for malicious IPs and domains in fortiguard

Install

npm install fortiguard

How to use

const fortiguard = require('fortiguard');
 
 
// Use checkIP(<IP>) to check that IP against fortiguard.com
// A promise will be returned
ip = "123.123.123.123";
fortiguard.checkIP(ip).then(function(result){ 
        console.log(result);
    }, function(err) {
        console.log(err);
});
 
domain = "bandroxoma.com"
fortiguard.checkDomain(domain).then(function(result){ 
        console.log(result);
    }, function(err) {
        console.log(err);
});
 
 
/*
Output examples
{ isBlacklisted: true, title: 'Malicious Websites' }
{ isBlacklisted: false, title: 'Not malicious' }
*/

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i fortiguard

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

3.17 kB

Total Files

3

Last publish

Collaborators

  • carlospolop