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

[ANY] VPN Block


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
     



    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 22:49.


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