malicious-link-detector
v1.6.2
Published
This package allows you to verify any link through the google safe browsing
Downloads
3
Maintainers
Readme
Malicious Link Detector
This package allows you to verify any link through the google safe browsing
- ✨Easy to use
- ✨Almost no dependencies
- ✨Works with link and domain name
Examples :
Using .then()
const { request } = require('malicious-link-detector');
request('https://google.com')
.then(res => {
console.log(res)
})
//return safe
Using async/await
const { request } = require('malicious-link-detector');
(async () => {
let result = await request('https://discord.gg')
console.log(result);
//Return Too many contents
})();
List of possible results :
- Safe
- Suspicious
- Dangerous
- Too many contents
- Invalid
This package is based on https://transparencyreport.google.com/safe-browsing/search If the website return a link as malicious, the module return also the link as malicious