Jump to content

Detect who use vpn


Simple.

Recommended Posts

  • Moderators

API: http://getipintel.net/free-proxy-vpn-tor-detection-api/

 

-- SERVER SIDE

local server_owner_email = "[email protected]" -- change it

addEventHandler("onPlayerJoin", root, function()
	local IP = getPlayerIP(source)
	
	fetchRemote("http://check.getipintel.net/check.php?ip="..IP.."&contact="..server_owner_email, function(data, errno, player)
		if errno ~= 0 then print("fetchRemote error - "..errno) return false end
		local result = tonumber(data)
		
		if (result >= 0 and result <= 1) and result > 0.85 then
			outputChatBox(getPlayerName(player).." use VPN!", root)
		end
	end, "", false, source)
end)

 

not tested

  • Like 1
  • Thanks 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...