SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 05/01/2018, 11:16 PM   #1
Xeon™
Banned
 
Join Date: Jul 2017
Location: Earth
Posts: 490
Reputation: 96
Default Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort)

Proxy Detector

(Last Updated: 2018/01/07 03:17PM)

Hello,

What is this?


This is an include that offers to you a full proxy detection.

What the difference between this and this?

This include give you more advantages like checking toggling the kick feature and also an external callback to use as you wish! nothing controlled and improved the rapidity and stability a bit.

What are the functions/Callbacks?

PHP Code:
    Functions:

        - 
bool:IsPlayerUsingProxy(playerid)
        - 
ProxyDetectKick(bool:toggle) (Default use under OnGameModeInit)

    
Callback:

        - 
OnPlayerProxyCheck(playeridbool:proxy
Download

Credits:

Author: Gnikllort
Rewritten by: Xeon

Last edited by Xeon™; 07/01/2018 at 02:21 PM.
Xeon™ is offline   Reply With Quote
Old 05/01/2018, 11:21 PM   #2
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,173
Reputation: 353
Default Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort)

Well first off its good seeing you release since i haven't seen you release anything since i came here lol so +rep to you but come on guys this will not detect all vpns, isn't the concept based on ip tables? this can't contain all vpns and to me, the only use for this IF IT DOES detect all vpns (which is in my honest opinion wont happen) would only be used to just see who is using a vpn to keep an eye on him, but that is detectable through high ping players.
__________________

[Github]:Link [Gists]:Link [Forum]:Link [Server]:Link [Discord]:Link


RogueDrifter is offline   Reply With Quote
Old 05/01/2018, 11:24 PM   #3
Xeon™
Banned
 
Join Date: Jul 2017
Location: Earth
Posts: 490
Reputation: 96
Default Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort)

Quote:
Originally Posted by RogueDrifter View Post
Well first off its good seeing you release since i haven't seen you release anything since i came here lol so +rep to you but come on guys this will not detect all vpns, isn't the concept based on ip tables? this can't contain all vpns and to me, the only use for this IF IT DOES detect all vpns (which is in my honest opinion wont happen) would only be used to just see who is using a vpn to keep an eye on him, but that is detectable through high ping players.
Yes, I know that.

this is why in this include the auto kick is togglable (ProxyDetectKick & IsPlayerUsingProxy function).

I let the user choose since it's not a big deal.

and thanks, its been a long time since last release.
Xeon™ is offline   Reply With Quote
Old 06/01/2018, 06:31 AM   #4
iLearner
Gangsta
 
iLearner's Avatar
 
Join Date: Apr 2017
Posts: 632
Reputation: 134
Default Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort)

Do u know shroomery.org ain't working anymore? You could check original thread and see that.
iLearner is offline   Reply With Quote
Old 06/01/2018, 07:03 AM   #5
gurmani11
Huge Clucker
 
gurmani11's Avatar
 
Join Date: Dec 2012
Location: SKY
Posts: 358
Reputation: 18
Default Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort)

http://check.getipintel.net/check.ph...ssHere&flags=m

this returns 1 or 0

or

https://proxycheck.io/api/

Get your api key and get precise information
gurmani11 is offline   Reply With Quote
Old 06/01/2018, 07:07 AM   #6
jlalt
Banned
 
Join Date: Oct 2014
Location: Iran
Posts: 1,287
Reputation: 366
Default Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort)

PHP Code:
        if(ProxyAutoKick)
        {
            new 
string[89];
            
GetPlayerName(playeridstringsizeof(string));
            
format(stringsizeof(string), "[Proxy Detector]: %s (%d) has been kicked for using a vpn/proxy."stringplayerid);
            
SendClientMessageToAll(0xFF0000FFstring);
        } 
Only saying player is kicked but actually not kicking.

PHP Code:
default: return printf("The request failed! The response code was: %d"response_code); 
response_code is always 200 there.

@gurmani11, these sites have limits on requests :O

@iLearner, it works only moved on new domain http://proxy.mind-media.com/block/pr...?ip=ipgoeshere

Giving 3 stars due to scripting mistakes :-p
jlalt is offline   Reply With Quote
Old 06/01/2018, 02:33 PM   #7
RogerCosta
Huge Clucker
 
RogerCosta's Avatar
 
Join Date: Aug 2014
Location: Santos, Brazil.
Posts: 315
Reputation: 92
Default Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort)

Nice.

Also, you can use:
static bool:IsUsingProxy[MAX_PLAYERS] = {false, ...}; // Set all index to false

Instead of creating a loop in OnGameModeInit
RogerCosta is offline   Reply With Quote
Old 06/01/2018, 03:42 PM   #8
Xeon™
Banned
 
Join Date: Jul 2017
Location: Earth
Posts: 490
Reputation: 96
Default Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort)

Oh, sorry didn't pay attention to those little parts.

Fixed! updated.

- Domain updated.
- bool: tag added to IsUsingProxy
- Kick is now working!

Thank you everyone!
Xeon™ is offline   Reply With Quote
Old 06/01/2018, 07:53 PM   #9
Younes44
Gangsta
 
Younes44's Avatar
 
Join Date: Oct 2013
Posts: 798
Reputation: 78
Default Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort)

Good job @Xeon :3
sume reps fur yu :-v
__________________
Left SA:MP, and not avalaible anymore!!
Thanks samp for awesome moments, i enjoy!! Goodbye!
ModernFreeroam: www.mf-samp.com , IP:94.23.255.30:7777
CounterTerroristUnit: www.ctu.w4f.eu , IP:87.98.243.201:6969
xSF: www.xsfserver.com , IP: 87.98.243.201:6969
Exm: www.exmserv.me , IP: exmserv.me:7777
Underground Stunting: www.ustunting.com , IP:145.239.3.225:7777

Thanks everyone,for the awesome moments,
Regards, COD Ghosts owner.
Younes44 ,YOuNeS_Dz ,WarZ ,Bryan_ , Kaneki
Younes44 is offline   Reply With Quote
Old 07/01/2018, 03:39 AM   #10
RogueDrifter
High-roller
 
RogueDrifter's Avatar
 
Join Date: Dec 2017
Location: SA-MP Drifting world.
Posts: 1,173
Reputation: 353
Default Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort)

Uhm... i decided to try and compile this and...
Code:
(5349) : error 017: undefined symbol "IsUsingProxy"
(5349) warning 215: expression has no effect
(5349) : error 001: expected token: ";", but found "]" 
(5349) : error 029: invalid expression, assumed zero
(5349) : fatal error 107: too many error messages on one line
Line:
PHP Code:
if(IsPlayerUsingProxy(playerid)) format(pbstring,sizeof(pbstring,".: %s Is on a proxy:.",idname); 
Did anyone even try to use this yet?
EDIT: i included the include, just to clear out doubts about that, can you check this out xeon?
__________________

[Github]:Link [Gists]:Link [Forum]:Link [Server]:Link [Discord]:Link



Last edited by RogueDrifter; 07/01/2018 at 07:42 AM.
RogueDrifter is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [BETA] Anti Proxy [Over 15.000 Proxy Supported!] ColuiCheTiUccide Filterscripts 7 15/06/2014 03:55 PM
Proxy Detector Help Required. GNewZ Scripting Help 2 21/07/2013 03:40 PM


All times are GMT. The time now is 03:27 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.