0.4.1 • Published 3 years ago

fraud-check v0.4.1

Weekly downloads
3
License
ISC
Repository
-
Last release
3 years ago

Fraud Check - V1

Installation

This is a Node.js module available through the npm registry.

Installation is done using the npm install command:

npm install fraud-check --save

Usage

const { verify } = require("fraud-check");

// Send the code to the User Email.

const getInfo = async (ip) => {
  const data = {
    ip,
    countryArr: ["US", "UK"],
  };
  const auth = await verify(data);

  console.log(auth);

  // false = fraud
  // true = not fraud
};

data

OptionTypeDefaultDescriptionRequired
ipStringnullClient ip to check (IPv4 or IPv6)True
countryArrArraynullfraud all traffic coming from the following countriesFalse

How it Work!

Detect VPN servers, open proxies, web proxies, Tor exits, search engine robots, data center ranges, and fraud All the country code you entered previously.

This package use ip-api non-commercial API. The free endpoint's limited at 45 requests per minutes.

A PRO Version ?

If you take a pro version of ip-api, the package can still work by adding a third parameter:

  // ...

  const data = {
    ip,
    countryArr: ["US", "UK"],
    custom: {
      link: "https://pro.ip-api.com/json/",
      key: // Your api key
    }
  };
  const auth = await verify(data);

  console.log(auth);

  // false = fraud
  // true = not fraud
};

License

MIT

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago