Skip to content

phishing-hunter/phishing-blocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published