1.1.1 • Published 8 months ago

vpn-detect v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

VPN Detect (vpn-detect)

This project is a simple CommonJS module that detects if a user is using a VPN and displays relevant information such as IP address, continent, country, ISP, and currency.

INSTALL

npm i vpn-detect

Penggunaan

(async ()=>{
    const detectVPN = require('vpn-detect');
    const ipinfo= await detectVPN())
    console.log(ipinfo);
})()

Respon

Jika klien Mengunakan VPN

{
  success: true,
  vpn: **true**,
  ipinfo: {
    ipAddress: '2a09:xxxxxxxxxxxxxxxx',
    countryName: 'Singapore',
    countryCode: 'SG',
    timeZone: '+08:00',
    zipCode: '179431',
    cityName: 'Singapore',
    regionName: 'Singapore',
    continent: 'Asia',
    continentCode: 'AS',
    language: 'Mandarin',
    timeZones: [ 'Asia/Singapore' ],
    tlds: [ '.sg', '.新加坡', '.சிங்கப்பூர்' ]
  },
  message: 'VPN Terdeteksi, jangan ya deck ya !!',
  author: 'Catur Adi Sukrisno'
}

Tanpa VPN

{
  success: true,
  vpn: **false**,
  ipinfo: {
    ipAddress: '2001:448axxxxxxxxxxxxx
    countryName: 'Indonesia',
    countryCode: 'ID',
    timeZone: '+07:00',
    zipCode: '12850',
    cityName: 'Jakarta',
    regionName: 'Jakarta Raya',
    continent: 'Asia',
    continentCode: 'AS',
    language: 'Indonesian',
    timeZones: [
      'Asia/Jakarta'
    ],
    tlds: [ '.id' ]
  },
  message: 'Tidak terdeteksi menggunakan VPN',
  author: 'Catur Adi Sukrisno'
}
1.1.1

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago