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

[ANY] VPN Block


Post New Thread Reply   
 
Thread Tools Display Modes
FIELD LINE
New Member
Join Date: Aug 2014
Old 07-28-2019 , 14:26   Re: [ANY] VPN Block
Reply With Quote #41

Quote:
Originally Posted by djded View Post
I'm find out how to connect this plugin to Proxycheck.io
Share the solution please.
FIELD LINE is offline
Tenchuu1987
Member
Join Date: Sep 2019
Old 09-05-2019 , 07:22   Re: [ANY] VPN Block
Reply With Quote #42

Quote:
Originally Posted by FIELD LINE View Post
Share the solution please.
How you fix that?
Tenchuu1987 is offline
djded
Member
Join Date: Jul 2019
Location: Czech Republic
Old 09-05-2019 , 14:30   Re: [ANY] VPN Block
Reply With Quote #43

Quote:
Originally Posted by Tenchuu1987 View Post
How you fix that?
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.

Last edited by djded; 09-05-2019 at 14:34.
djded is offline
ph
AlliedModders Donor
Join Date: Mar 2006
Old 10-26-2019 , 14:16   Re: [ANY] VPN Block
Reply With Quote #44

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.
Does this really work ?
__________________
ph is offline
djded
Member
Join Date: Jul 2019
Location: Czech Republic
Old 10-26-2019 , 15:52   Re: [ANY] VPN Block
Reply With Quote #45

Quote:
Originally Posted by ph View Post
Does this really work ?
It's working fine for me
Attached Images
File Type: jpg IMG_20191026_215003.jpg (88.6 KB, 331 views)
djded is offline
LionKing
Member
Join Date: Jan 2017
Location: Belgium
Old 11-02-2019 , 06:56   Re: [ANY] VPN Block
Reply With Quote #46

I am unable to get this to work.

I have tried using djed's solution, but this still had no effect.
The only error it throws me are error logs from SQL connections.
Code:
L 11/02/2019 - 00:27:32: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 11/02/2019 - 00:27:32: [SM] Blaming: VPNBlock.smx
L 11/02/2019 - 00:27:32: [SM] Call stack trace:
L 11/02/2019 - 00:27:32: [SM]   [0] SQL_Query
L 11/02/2019 - 00:27:32: [SM]   [1] Line 72, VPNBlock.sp::OnClientAuthorized
L 11/02/2019 - 00:27:32: [SM] Exception reported: Databases don't work
L 11/02/2019 - 00:27:32: [SM] Blaming: VPNBlock.smx
L 11/02/2019 - 00:27:32: [SM] Call stack trace:
L 11/02/2019 - 00:27:32: [SM]   [0] SetFailState
L 11/02/2019 - 00:27:32: [SM]   [1] Line 44, VPNBlock.sp::OnSqlConnect
But OP said it is optional to connect to a database.
LionKing is offline
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
MUN
Senior Member
Join Date: Jan 2012
Location: Cali
Old 11-10-2019 , 02:08   Re: [ANY] VPN Block
Reply With Quote #48

This is in beta, but I built a drop-in replacement for proxy.mind-media.com/block. You can find it at: https://blackbox.ipinfo.app/lookup/8.8.8.8

Let me know if you have any troubles, and I will work on addressing them.
__________________
MUN is offline
djded
Member
Join Date: Jul 2019
Location: Czech Republic
Old 11-10-2019 , 02:52   Re: [ANY] VPN Block
Reply With Quote #49

Quote:
Originally Posted by Bara View Post
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.
Quote:
Originally Posted by LionKing View Post
I am unable to get this to work.

I have tried using djed's solution, but this still had no effect.
The only error it throws me are error logs from SQL connections.
Code:
L 11/02/2019 - 00:27:32: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 11/02/2019 - 00:27:32: [SM] Blaming: VPNBlock.smx
L 11/02/2019 - 00:27:32: [SM] Call stack trace:
L 11/02/2019 - 00:27:32: [SM]   [0] SQL_Query
L 11/02/2019 - 00:27:32: [SM]   [1] Line 72, VPNBlock.sp::OnClientAuthorized
L 11/02/2019 - 00:27:32: [SM] Exception reported: Databases don't work
L 11/02/2019 - 00:27:32: [SM] Blaming: VPNBlock.smx
L 11/02/2019 - 00:27:32: [SM] Call stack trace:
L 11/02/2019 - 00:27:32: [SM]   [0] SetFailState
L 11/02/2019 - 00:27:32: [SM]   [1] Line 44, VPNBlock.sp::OnSqlConnect
But OP said it is optional to connect to a database.
Hello. Change your reply about my solution. After I'm help you to setup a config file, it's working for you. It will help to another users.
djded is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 11-10-2019 , 17:14   Re: [ANY] VPN Block
Reply With Quote #50

Quote:
Originally Posted by MUN View Post
This is in beta, but I built a drop-in replacement for proxy.mind-media.com/block. You can find it at: https://blackbox.ipinfo.app/lookup/8.8.8.8

Let me know if you have any troubles, and I will work on addressing them.
Looks good. Your the owner? If yes, it exists any limitation (requests per hours or so) and what's the update interval for ASN/IP?

I like an output with more informations like proxycheck it does:
Spoiler
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.

Last edited by Bara; 11-10-2019 at 17:16.
Bara is offline
Reply


Thread Tools
Display Modes

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 11:00.


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