Raised This Month: $51 Target: $400
 12% 

[ANY] VPN Block


Post New Thread Reply   
 
Thread Tools Display Modes
Author
PwnK
Junior Member
Join Date: Aug 2018
Plugin ID:
6369
Plugin Version:
1.1.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Blocks VPNs
    Unapprover:
    Reason for Unapproving:
    Unsupported, moved by request of author
    Old 12-16-2018 , 04:53   [ANY] VPN Block
    Reply With Quote #1

    Description
    This plugin's purpose is to kick anyone who tries to join your server with a VPN. It does it by checking from this website whether the client who is joining your server is using a VPN or not.
    It then saves the ip and whether it's a proxy to a database so it doesn't need to check the same ip many times.
    You can use either mysql or sqlite database with this plugin.

    The plugin creates a log file to sourcemod/logs/VPNBlock_Log.txt and logs everyone who tries to join the server with a VPN.

    Admin commands (require flag z)
    PHP Code:
    sm_vbwhitelist "<SteamID>" Whitelists a steamid which is allowed to join even with a VPN.
    sm_vbunwhitelist "<SteamID>" Removes a steamid from whitelist
    CVars
    CVars are saved to your cfg/sourcemod/VPNBlock.cfg file.

    PHP Code:
    // 1 = Kick and log client when he tries to join with a VPN 0 = only log
    vpnblock_kickclients "1"

    // If the response contains this it means the player is using a VPN.
    vpnblock_response "Y"

    // The url used to check proxies.
    vpnblock_url "http://proxy.mind-media.com/block/proxycheck.php?ip={IP}" 
    Required extensions
    Installation
    • Make sure you have Steamworks installed.
    • Upload smx and translation file to your server
    • (Optional) Add a new entry called "VPNBlock" to your databases.cfg. If this entry is not found the default entry is used.

    Changelog
    Code:
    1.1.0 (17-Jan-2019)
        - Made the plugin use steamworks instead of system2 for http requests.
        - Added option to change the url which is used to check for vpns.
        - Added option to only log users who join with VPN instead of kicking them.
    
    1.0.0 (16-Dec-2018)
        - Initial release.
    Github repo
    Direct download

    Last edited by PwnK; 01-17-2019 at 09:41. Reason: v1.1.0
    PwnK is offline
    Lubricant Jam
    AlliedModders Donor
    Join Date: Oct 2016
    Location: United Kingdom
    Old 12-16-2018 , 12:22   Re: [ANY] VPN Block
    Reply With Quote #2

    https://cidr-blocker.github.io/#/

    What's the difference may I ask?
    Lubricant Jam is offline
    PwnK
    Junior Member
    Join Date: Aug 2018
    Old 12-16-2018 , 12:59   Re: [ANY] VPN Block
    Reply With Quote #3

    Quote:
    Originally Posted by Lubricant Jam View Post
    https://cidr-blocker.github.io/#/

    What's the difference may I ask?
    I have never used that plugin so I'm not sure actually. At least that it uses a different database for the proxies which might be a good or a bad thing. I have used this on my server for couple of weeks now and I haven't yet found a single vpn that gets past it so it has worked well for me.
    PwnK is offline
    DarkDeviL
    SourceMod Moderator
    Join Date: Apr 2012
    Old 12-18-2018 , 00:18   Re: [ANY] VPN Block
    Reply With Quote #4

    Quote:
    Originally Posted by Lubricant Jam View Post
    https://cidr-blocker.github.io/#/

    What's the difference may I ask?
    You need to spend time to create the list of bad IP addresses with CIDR-Blocker yourself.

    With this one, your server is calling a third party every time, to ask whether or not the IP is a proxy/VPN, and if it claims it is, it will act accordingly - and automated, without your you need to get your hands on the job with generating the list of bad IP addresses.
    __________________
    Mostly known as "DarkDeviL".

    Dropbox FastDL: Public folder will no longer work after March 15, 2017!
    For more info, see the [SRCDS Thread], or the [HLDS Thread].
    DarkDeviL is offline
    Lubricant Jam
    AlliedModders Donor
    Join Date: Oct 2016
    Location: United Kingdom
    Old 12-18-2018 , 04:30   Re: [ANY] VPN Block
    Reply With Quote #5

    Quote:
    Originally Posted by arne1288 View Post
    You need to spend time to create the list of bad IP addresses with CIDR-Blocker yourself.

    With this one, your server is calling a third party every time, to ask whether or not the IP is a proxy/VPN, and if it claims it is, it will act accordingly - and automated, without your you need to get your hands on the job with generating the list of bad IP addresses.
    Thought as much, thanks for the clarification. I'll make a switch shortly
    Lubricant Jam is offline
    LaGgLs
    Senior Member
    Join Date: Apr 2015
    Location: sweden
    Old 12-17-2018 , 13:21   Re: [ANY] VPN Block
    Reply With Quote #6

    Great plugin just some small problem but its not the plugins problem it can give a false positives but other wise really good plugin
    LaGgLs is offline
    PwnK
    Junior Member
    Join Date: Aug 2018
    Old 12-17-2018 , 16:27   Re: [ANY] VPN Block
    Reply With Quote #7

    Quote:
    Originally Posted by LaGgLs View Post
    Great plugin just some small problem but its not the plugins problem it can give a false positives but other wise really good plugin
    I have checked pretty much everyone's ip who this plugin has blocked and I haven't yet found any false positives. Of course if you get those you can just change that ip's proxy column to 0 from mysql or sqlite so it doesn't block them. I don't know how many false positives does this plugin detect but that can of course only be fixed by changing the database.
    PwnK is offline
    LaGgLs
    Senior Member
    Join Date: Apr 2015
    Location: sweden
    Old 12-22-2018 , 12:47   Re: [ANY] VPN Block
    Reply With Quote #8

    Quote:
    Originally Posted by PwnK View Post
    I have checked pretty much everyone's ip who this plugin has blocked and I haven't yet found any false positives. Of course if you get those you can just change that ip's proxy column to 0 from mysql or sqlite so it doesn't block them. I don't know how many false positives does this plugin detect but that can of course only be fixed by changing the database.
    Just change the proxy to 0 instead of 1 and he can connect to the server heres the quote of the owner of the plugin


    Quote:
    Originally Posted by Lubricant Jam View Post
    Budget ISPs detecting as a proxy, shortly put. I am aware it's a third party service I just thought I'd mention that source doesn't seem to be as reliable as put.

    EDIT: I definitely think that there should be two checks put in place as I'm having a fair few people a day come to me asking to be unblocked and I'm checking their IPs and they're valid ISPs.
    LaGgLs is offline
    PwnK
    Junior Member
    Join Date: Aug 2018
    Old 12-22-2018 , 13:02   Re: [ANY] VPN Block
    Reply With Quote #9

    Quote:
    Originally Posted by LaGgLs View Post
    Just change the proxy to 0 instead of 1 and he can connect to the server heres the quote of the owner of the plugin
    That doesn't fix the problem with the false positives though. If you get a lot of those I image it would be a big pain in the ass to fix all manually also you could lose players because of that.
    I don't have this problem myself because I think that 3rd party website detects all isps from my coutry as not proxy but I'll probably change the default site to something else and maybe provide a config from which you can easily change it yourself.
    PwnK is offline
    Lubricant Jam
    AlliedModders Donor
    Join Date: Oct 2016
    Location: United Kingdom
    Old 12-22-2018 , 18:34   Re: [ANY] VPN Block
    Reply With Quote #10

    Quote:
    Originally Posted by PwnK View Post
    That doesn't fix the problem with the false positives though. If you get a lot of those I image it would be a big pain in the ass to fix all manually also you could lose players because of that.
    I don't have this problem myself because I think that 3rd party website detects all isps from my coutry as not proxy but I'll probably change the default site to something else and maybe provide a config from which you can easily change it yourself.
    That sounds good, can you recommend any other URLs I can replace with in your plugin currently?
    Lubricant Jam is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 04:46.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode