0.1.2 • Published 2 years ago

phishing-blocker v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

phishing-blocker

INSTALLATION

npm install phishing-blocker

USEAGE EXAMPLE

  • The first argument is a regular expressions for allowed domains
  • The second argument is a message to be displayed if the first argument and the hostname do not match.
  • If the third argument is true, the HTML content is replaced by the second argument.
const checkHostname = require('phishing-blocker');
var pattern = /^((www|dev)\.)?phishing-hunter\.com$/i;
checkHostname(pattern, "Phishing Scam Detected", true)

Demo

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.8

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago