Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Xeon™ - 05.01.2018
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 код:
Functions:
- bool:IsPlayerUsingProxy(playerid)
- ProxyDetectKick(bool:toggle) (Default use under OnGameModeInit)
Callback:
- OnPlayerProxyCheck(playerid, bool:proxy)
Download
Credits:
Author: Gnikllort
Rewritten by: Xeon
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
RogueDrifter - 05.01.2018
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.
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Xeon™ - 05.01.2018
Quote:
Originally Posted by RogueDrifter
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.
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
iLearner - 06.01.2018
Do u know shroomery.org ain't working anymore? You could check original thread and see that.
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
gurmani11 - 06.01.2018
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
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
jlalt - 06.01.2018
PHP код:
if(ProxyAutoKick)
{
new string[89];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), "[Proxy Detector]: %s (%d) has been kicked for using a vpn/proxy.", string, playerid);
SendClientMessageToAll(0xFF0000FF, string);
}
Only saying player is kicked but actually not kicking.
PHP код:
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
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
RogerCosta - 06.01.2018
Nice.
Also, you can use:
static bool:IsUsingProxy[MAX_PLAYERS] = {false, ...}; // Set all index to false
Instead of creating a loop in OnGameModeInit
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Xeon™ - 06.01.2018
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!
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Younes44 - 06.01.2018
Good job @Xeon :3
sume reps fur yu :-v
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
RogueDrifter - 07.01.2018
Uhm... i decided to try and compile this and...
Код:
(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 код:
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?
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
solstice_ - 07.01.2018
Good job mate.
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Abagail - 07.01.2018
Skimmed through this, one thing that caught my eye:
Quote:
new ip[16];
GetPlayerIp(playerid, ip, sizeof(ip));
if(strcmp(ip, "127.0.0.1", true) == 0) return 1;
|
Why check this in the HTTP response, when you're already getting their IP address within OnPlayerConnect? Also I'd suggest making some more things more dynamic, the delay kick for example. Something such as:
Код:
SetTimerEx(...PROXY_KICK_DELAY,...
#if !defined PROXY_KICK_DELAY
#define PROXY_KICK_DELAY (1000)
#endif
You should also prefix the function, something such as "PROXY_DelayedKick" to avoid potential script conflicts.
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Xeon™ - 07.01.2018
Quote:
Originally Posted by RogueDrifter
Uhm... i decided to try and compile this and...
Код:
(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 код:
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?
|
Fixed that, updated.
Now, everything must be fine!
@Abagail: removed since someone proved that playerip param in OnPlayerProxyCheck is useless, and thanks for your reply, I did edit that.
thanks! this include reached 1,5K views in less than 48 hours I'm so excited!
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Logic_ - 07.01.2018
PHP код:
bool:IsUsingProxy[MAX_PLAYERS]
Char-array!
PHP код:
if(proxy)
{
if(ProxyAutoKick)
{
Could've been one-statement... Anyways, good work.
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Xeon™ - 07.01.2018
Quote:
Originally Posted by Logic_
PHP код:
bool:IsUsingProxy[MAX_PLAYERS]
Char-array!
PHP код:
if(proxy)
{
if(ProxyAutoKick)
{
Could've been one-statement... Anyways, good work.
|
Done and done! thank you.
The script is now very stable.
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Logic_ - 07.01.2018
IsUsingProxy's value is never changed to true...
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
RogerCosta - 07.01.2018
You changed "IsUsingProxy" array to char-array, you need to switch [] for brackets {}, example:
IsUsingProxy{playerid} = true/false;
Read about char array, by Slice:
https://sampforum.blast.hk/showthread.php?tid=216730
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Xeon™ - 07.01.2018
Update:
Fixed all the previous bugs.
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
iLearner - 07.01.2018
All of your releases get fixed by posters lul
Re: Proxy Detector - UserFriendly, Stable. (Originaly by Gnikllort) -
Hunud - 07.01.2018
Quote:
Originally Posted by iLearner
All of your releases get fixed by posters lul
|
Think before shitposting, all these guys were like a 'beta testers' and reported the possible bug or example for the code improvement.