1.1.7 • Published 4 years ago

npm-layer7-protections v1.1.7

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Package version Package status Build Status Coverage Status Known Vulnerabilities

Layer7-protections

Tested on linux based systems using iptables.

Installation

npm

npm install npm-layer7-protections

yarn

yarn add npm-layer7-protections

Usage

const { isProxy, dropIp, checkIp, openFile } = require('npm-layer7-protections');
  openFile('IP2PROXY_DATABASE_FILE.bin')
    .then(() => {
      return isProxy(IP);
    })
    .then(() => {
      return dropIp(IP);
    })
    .then(() => {
      console.log('Success');
    })
    .catch(() => {
      console.log('Error');
    });
checkIp(IP, 'IP2PROXY_DATABASE_FILE.bin'); // checkIp uses both modules: isProxy and dropIp

Note

IP2PROXY_DATABASE_FILE.bin is an example name of the file that you can download via this site: https://lite.ip2location.com/database/px1-ip-country

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago