Thread: [ANY] VPN Block
View Single Post
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 11-02-2019 , 09:06   Re: [ANY] VPN Block
Reply With Quote #47

Quote:
Originally Posted by djded View Post
Write that in config file VPNBlock
vpnblock_url "http://proxycheck.io/v2/{IP}?key=111111-222222-333333-444444&vpn=1"
And change response from "yes" to "VPN"

You can also get your own key, just register at Proxycheck.io

After ewery changes you do, better to delete VPNBlock database from your server.
You can also create your own rules for api.
I would add a cache function for IPs (recheck cached ip after a week), more efficient for communities with large player base. Why? Be checking every IP on every join, you'll reach your limit pretty fast.

proxycheck hasn't this function, because as example the Wordpress Plugin "Proxy & VPN Blocker" has a builtin function: "Includes caching to save you queries and make repeat checks instant".

If you (or anyone else) want that function, let me know I'll add it.
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline