haxball / haxball-issues

114 stars 43 forks source link

some script to block players with VPN? #2171

Open joqnez46 opened 3 months ago

joqnez46 commented 3 months ago

Hello, I have seen that in my room the IP is banned with a command that I have, but then they can enter with VPN, does anyone know a code that blocks players with VPN? I'm looking for the code to add to my script

kubistika commented 4 days ago

What I've done in my bot is use a freeware API like vpn-api and use it on each onPlayerJoin event. If they return me data with {vpn: true} than I ban the player automatically. You do need to register to their API and there is a limit of 1000 requests per day.