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 = ; ;; // 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