Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vpn-detect

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vpn-detect

VPN Detector

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

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'
}

Keywords

FAQs

Package last updated on 22 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc