Use Node to check for malicious IPs in projecthoneypot
npm install nodejs-projecthoneypot
const projecthoneypot = require('nodejs-projecthoneypot');
projecthoneypot.setApiKey("<YOUR API KEY>")
// Use checkIP(<IP>) to check that IP against projecthoneypot.org
// A promise will be returned
ip = "127.1.1.1";
projecthoneypot.checkIP(ip).then(function(result){
console.log(result);
}, function(err) {
console.log(err);
});
/*
Output example
{ malicious: true,
days_since_last: '1',
threat_score: '1',
types: [ 'Search Engine' ] }
*/