# phishing-blocker

> Just install it to display an alert when the HTML code is copied to a phishing site.

Latest version **0.1.2** (published 2023-02-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install phishing-blocker
pnpm add phishing-blocker
yarn add phishing-blocker
bun add phishing-blocker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2023-02-16 |
| First published | 2022-12-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | tatsui |
| Maintainers | tatsui |
| Keywords | phishing, threathunting |

## Links

- npm: https://www.npmjs.com/package/phishing-blocker
- Repository: https://github.com/phishing-hunter/phishing-blocker
- Homepage: https://github.com/phishing-hunter/phishing-blocker#readme
- Issues: https://github.com/phishing-hunter/phishing-blocker/issues
- npm.io page: https://npm.io/package/phishing-blocker

## Dependencies (1)

- [can-npm-publish](https://npm.io/package/can-npm-publish.md) ^1.3.6

## Recent versions

- 0.1.2 (latest) — 2023-02-16
- 0.1.1 — 2023-02-15
- 0.1.0 — 2023-01-06
- 0.0.8 — 2023-01-06
- 0.0.6 — 2022-12-17
- 0.0.5 — 2022-12-17
- 0.0.4 — 2022-12-17
- 0.0.3 — 2022-12-17
- 0.0.2 — 2022-12-17
- 0.0.1 — 2022-12-17

## README

# phishing-blocker

## INSTALLATION
```bash
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

* [Real site](https://www.phishing-hunter.com/demo/)
* [Fake site](https://fake.phishing-hunter.com/demo/)

---
_Source: https://npm.io/package/phishing-blocker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
