Skip to content

carlospolop-node-apis/node-fortiguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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' }
*/

About

Check in Node for malicious IPs and domains in fortiguard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published