[Mod] VPS Blocker [vps_blocker]

User avatar
Lejo
Member
 
Posts: 634
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

[Mod] VPS Blocker [vps_blocker]

by Lejo » Thu Jan 31, 2019 14:31

VPS Blocker
This mod checks the IPs of the player for VPNs, proxys, or other hosting services which players use to skip IP bans.
These players will be blocked using this mod.
It gets the information from nastyhosts.com or iphub.info.
The information is stored to prevent often requests.

Installing
First you need to add vps_blocker to secure.http_mods to allow https requests.
If you want to use iphub.info(recommend) you need to register there and paste your API key in the minetest config to iphub_key = 123
Set the kick message:
vps_kick_message = "You are using a proxy, VPN or other hosting services, please disable them to play on this server."

Commands
Use /vps_wl <add or remove> <name or ip> to allow people using VPS.

License
The idea for the mod is taken from here but it's a complete redo of it which is more lag resistant.

License: MIT
depends: none
Download
Source
Last edited by Lejo on Fri Jun 21, 2019 11:16, edited 1 time in total.
 

User avatar
Nathan.S
Member
 
Posts: 913
Joined: Wed Sep 24, 2014 17:47
Location: Bigsby Texas
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: [Mod] VPS Blocker [vps_blocker]

by Nathan.S » Fri Feb 01, 2019 02:28

I feel it's unlikely somebody will go out and buy a VPN just to bypass an IP ban, but I guess if somebody is having trouble with players doing that this could be useful. I do like that you implemented a way to allow people that do use a VPN to still connect if the admin/mods know they are a good player.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course
 

User avatar
Linuxdirk
Member
 
Posts: 2169
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: [Mod] VPS Blocker [vps_blocker]

by Linuxdirk » Fri Feb 01, 2019 09:20

In the current state this is illegal when processing data from users inside the European Union.
 

User avatar
rnd
Member
 
Posts: 221
Joined: Sun Dec 28, 2014 12:24
GitHub: ac-minetest
IRC: ac_minetest
In-game: rnd

Re: [Mod] VPS Blocker [vps_blocker]

by rnd » Fri Feb 01, 2019 10:04

How about writing complete sentences?
"In the current state this is illegal" + "because REASON - with citations to EXACT points", when processing...
1EvCmxbzl5KDu6XAunE1K853Lq6VVOsT
 

wziard
Member
 
Posts: 126
Joined: Mon Oct 29, 2018 19:12

Re: [Mod] VPS Blocker [vps_blocker]

by wziard » Fri Feb 01, 2019 10:40

Linuxdirk wrote:In the current state this is illegal when processing data from users inside the European Union.


Filtering by IP is not 'processing a user's data' though...
 

User avatar
Linuxdirk
Member
 
Posts: 2169
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: [Mod] VPS Blocker [vps_blocker]

by Linuxdirk » Fri Feb 01, 2019 11:17

wziard wrote:
Linuxdirk wrote:In the current state this is illegal when processing data from users inside the European Union.


Filtering by IP is not 'processing a user's data' though...

IPs are considered as personal user data. Forwarding personal user data to an external service without informing the user about this and having the user consenting to this before forwarding the data is illegal according to the GDPR.
 

User avatar
Lejo
Member
 
Posts: 634
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Mod] VPS Blocker [vps_blocker]

by Lejo » Fri Feb 01, 2019 12:23

Linuxdirk wrote:IPs are considered as personal user data. Forwarding personal user data to an external service without informing the user about this and having the user consenting to this before forwarding the data is illegal according to the GDPR.

The Problem of this is the system of the mod:
It starts checking on prejoin so that the player can be kicked when fully joined.
If they need to accept first they can play until then.
The best way would be in my opinion to add it to the registering information of 0.5 so that the checking will be done after this.

Do you have another idea?
 

User avatar
Linuxdirk
Member
 
Posts: 2169
Joined: Wed Sep 17, 2014 11:21
Location: Germany
In-game: Linuxdirk

Re: [Mod] VPS Blocker [vps_blocker]

by Linuxdirk » Fri Feb 01, 2019 13:43

Lejo wrote:
Linuxdirk wrote:If they need to accept first they can play until then. [...] Do you have another idea?

Maybe have a formspec that reappears on closing it until the decision was made. At bare minimum you need to fully inform the user what data will be transferred and to what service the data will be transferred and why the data will be transferred.

Best would be waiting for 5.0.0 with it's better API calls for when people join so you can intercept joining. Not exactly sure how to do that though.
 


Return to WIP Mods



Who is online

Users browsing this forum: divergent43 and 7 guests