npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

stop-discord-phishing

v0.3.3

Published

A simple Package that gives you Utils to find and recognize Discord Phishing Links to prevent scams & phishing

Downloads

145

Readme

Stop Discord Phishing

domains npm npm npm

About this Package

stop-discord-phishing works with the list of phishing Domains to detect phishing domains in messages on Discord.

This is the official repository & NPM package which provides functionality in detecting phising links.

If you like this project consider giving it a ⭐ and feel free to contribute to this project!

Source

If you found a domain that is not detected yet, contribute it to the discord-phishing-links repository!

Add Package to your Project

npm install stop-discord-phishing
# or
yarn add stop-discord-phishing

How to use:

const stopPhishing = require("stop-discord-phishing");

Check if String contains a Phishing Link:

const message = "this is definitivelynotascamdomain.ru that should be checked";

//Check string on confirmed Phishing Domains
async function checkMessage(message) {
  const isGrabber = await stopPhishing.checkMessage(message); //True
  console.log(isGrabber);
  return isGrabber;
}

//Check string on confirmed Phishing Domains & suspicious Domains RECOMMENDED!
async function checkMessageFull(message) {
  const isGrabber = await stopPhishing.checkMessage(message, true); //True
  console.log(isGrabber);
  return isGrabber;
}

checkMessage(message);
checkMessageFull(message);

List all Domains:

async function listPhishingDomains() {
  const links = await stopPhishing.listPhishingDomains(); //[]
  //Now you can do something with Array with all the confirmed Phishing Domains in it
  console.log(links);
  return links;
}
async function listSuspiciousDomains() {
  const links = await stopPhishing.listSuspiciousDomains(); //[]
  //Now you can do something with Array with all the suspicious Domains in it
  console.log(links);
  return links;
}
async function listAllDomains() {
  const links = await stopPhishing.listAllDomains(); //[]
  //Now you can do something with Array with all the suspicious and confirmed phishing Domains in it
  console.log(links);
  return links;
}

listPhishingDomains();
listSuspiciousDomains();
listAllDomains();

Get Domain Count:

//Get the amount of all Phishing and Suspicious Domains
async function getDomainAmount() {
  const amount = await stopPhishing.domainCount(); //Number
  console.log(amount);
  return amount;
}
//Get the amount of all Phishing Domains
async function getPhishingDomainAmount() {
  const amount = await stopPhishing.phishingDomainCount(); //Number
  console.log(amount);
  return amount;
}
//Get the amount of all Suspicious Domains
async function getSuspiciousDomainAmount() {
  const amount = await stopPhishing.suspiciousDomainCount(); //Number
  console.log(amount);
  return amount;
}

getDomainAmount();
getPhishingDomainAmount();
getSuspiciousDomainAmount();

Cache

To prevent an excess of requests and load, we added a Cache of 30 minutes!

List of Phishing Domains

Find the complete List of Phishing Domains here: discord-phishing-links

Changelog

0.3.1

  • Updated README.md

0.3.0 Current

  • Renamed listDomains() to listPhishingDomains()
  • Added DomainCount Support
  • Updated ReadMe to reflect the new DomainCount Support

0.2.1

  • Added toString to also support non-string values
  • Updated ReadMe with latest changes

0.2.0

  • Added better regex to detect exact domain matches
  • Updated ReadMe

0.1.0

  • Added suspicious Domains Support
  • Updated ReadMe

0.0.4

  • Added Chache Support and set Cache duration to 30min

0.0.3

  • Added better Project Structure

0.0.1

  • Initial (and Test) Upload