[][src]Crate no_vpn

Translate is the first VPN checking crate in rust

Requirements:

  • An internet connection
  • OpenSSL

Warning:

  • This crate use reqwest

Functionnalities:

  • Check if an ip is a VPN
  • Get the country of an ip

Examples:

use no_vpn::*;
check_vpn("IP",|result| {
    let result = result.unwrap();
    println!("VPN: {}, Country: {}",result.is_vpn(),result.get_country());
})

Specials thank's to besuper who has autorized me to convert the popular NoVPN minecraft plugin written in java to a Rust API https://www.spigotmc.org/resources/novpn-antibot-bungeecord-support-mcleaks.36511/ If you want to buy the minecraft plugin

Structs

VpnResult

This structure represent a VPN checker result

Functions

check_vpn

This function check if an ip has an VPN You can use the following example: