welsonjs/lib/ip-reputation.js

33 lines
935 B
JavaScript
Raw Normal View History

2025-01-10 04:28:46 +00:00
// ip-reputation.js
// Namhyeon Go <abuse@catswords.net>
// https://github.com/gnh1201/welsonjs
//
// ***SECURITY NOTICE***
// IP Reputation Checker requires an internet connection, and data may be transmitted externally. Users must adhere to the terms of use and privacy policy.
// - AbuseIPDB website: https://www.abuseipdb.com/
//
var HTTP = require("lib/http");
var APIKEY = require("lib/apikey");
function check(ip_address) {
var apikey = APIKEY.getApiKey("abuseipdb");
var response = HTTP.create()
.setHeaders({
"Key": apikey,
"Accept": "application/json"
})
.setParameters({
"ipAddress": ip_address
});
return response.responseBody;
}
2025-01-10 04:29:05 +00:00
exports.check = check;
2025-01-10 04:28:46 +00:00
exports.VERSIONINFO = "IP Reputation Checker (ip-reputation.js) version 0.1";
exports.AUTHOR = "abuse@catswords.net";
exports.global = global;
exports.require = global.require;