Best way to ban players?
#1

Hello, my server has some cheaters but I don't know the best way to ban them. By default, sa-mp allows you to ban ip's and ip ranges, however I have noticed that some people's ip addresses change completely from time to time (even the first numbers), so even a range ban can easily be evaded. I could create a piece of script to ban their nicknames but they could easily change them too. I use both Slice's GeoIP and Incognito's DNS plugin to tell each player's country and dns, but only these 2 things aren't enough to be unique to each player and also some cheaters use proxies, which makes both their apparent country and dns be different each time. Finally, I have read about a function to get a certain id of each player (I can't give further details, but I guess some of you know what I'm talking about), but once again that id is not unique and banning it would affect other innocent players. Therefore, I don't know what to do to keep certain players out of my server.
Any advice?
Reply
#2

The function you're talking about may ban innocent players as it's based off of an identifier thats easily changed.

Banning them via that function may help, just compare it to other players to see if it's a familiar 'hash'. Or you can attempt to firewall ban them. Other than that, I'm not sure.

This may be useful to ban. https://sampforum.blast.hk/showthread.php?tid=422675
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=442212
https://sampforum.blast.hk/showthread.php?tid=446692

Use those with kaiser's IPs and I'm sure hackers will be off anytime ^_^
Reply
#4

Hey nice tips, thank you both.
Reply
#5

Are you using a VPS / DEDI or a game host?
If you're using a VPS / DEDI, I prefer you to block the IP ranges through your systems firewall.
Reply
#6

Quote:
Originally Posted by Phaze
Посмотреть сообщение
Are you using a VPS / DEDI or a game host?
If you're using a VPS / DEDI, I prefer you to block the IP ranges through your systems firewall.
No, I'm using a server hosting. And what's the advantage of banning them from the firewall?
Reply
#7

Since alot of useful include has been produced by people in SA-MP, I prefer you blocking Proxy/VPN to avoid hackers coming back using free VPN

Lookup Include: https://sampforum.blast.hk/showthread.php?tid=460410

You could simply add this code in your gamemode, I've tested this and it is preety accurate.
pawn Код:
public OnLookupComplete(playerid)
{
    if(IsProxyUser(playerid))
    {
        SendClientMessage(playerid, -1, "[Proxy Detected] We Don't Allow Proxy/VPN, please turn it off and connect again.")
        Kick(playerid);
    }
    return 1;
}
Also best way is making your own registration/login system and ban them using that.
Reply
#8

There's not much more you can do except banning their IP addresses. On the other side, how about trying to improve your anticheat instead?
Reply
#9

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
Since alot of useful include has been produced by people in SA-MP, I prefer you blocking Proxy/VPN to avoid hackers coming back using free VPN

Lookup Include: https://sampforum.blast.hk/showthread.php?tid=460410

You could simply add this code in your gamemode, I've tested this and it is preety accurate.
pawn Код:
public OnLookupComplete(playerid)
{
    if(IsProxyUser(playerid))
    {
        SendClientMessage(playerid, -1, "[Proxy Detected] We Don't Allow Proxy/VPN, please turn it off and connect again.")
        Kick(playerid);
    }
    return 1;
}
Also best way is making your own registration/login system and ban them using that.
Hey that looks good!! thank you a lot.
I have a registration/login system, but what if a cheater is using an unregistered nick?

Quote:
Originally Posted by woot
Посмотреть сообщение
There's not much more you can do except banning their IP addresses. On the other side, how about trying to improve your anticheat instead?
I have already implemented some anticheats, but some cheats are hard to detect accurately by script.
Reply
#10

Quote:
Originally Posted by Gryphus One
Посмотреть сообщение
Hey that looks good!! thank you a lot.
I have a registration/login system, but what if a cheater is using an unregistered nick?
To detect a proxy, that include detects them by IpAdress not by their Name It won't affect and un-registered/registered users if they don't use Proxy

Quote:
Originally Posted by woot
Посмотреть сообщение
There's not much more you can do except banning their IP addresses. On the other side, how about trying to improve your anticheat instead?
I agree with you, Nicely done or lets say well scripted Anti-Cheat would help you ALOT for example, if there's no admins on the server, your Anti-Cheat could ban that player instead of harming that player and will force the player to leave the server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)