SA-MP Forums Archive
0.3.7 Dos Joins - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 0.3.7 Dos Joins (/showthread.php?tid=579810)



0.3.7 Dos Joins - suni - 30.06.2015

hello i wanted to script something like this to protect my server from dos.
Quote:

someone (ID:0) has been automatically kicked for multiple On Player Connect calls (0.3.7 Dos Joins)

i think it's someting like connection bots but i really need something like this to protect my server. if you can help. thanks.


Re: 0.3.7 Dos Joins - MohammedZ - 30.06.2015

Get the ip of a player
Define max logins per ip
if the count of logins is more than max logins of an ip he gets kicked automatically
Simple
if this helped + rep


Re: 0.3.7 Dos Joins - suni - 30.06.2015

can you show me please?


Re: 0.3.7 Dos Joins - VenomMancer - 30.06.2015

Same with my problem . but fixhed!
Here you go : https://sampforum.blast.hk/showthread.php?tid=320649

I use this on my GM :

pawn Code:
public OnPlayerFloodControl(playerid, iCount, iTimeSpan) {
    if(iCount > 2 && iTimeSpan < 5000) {
        Ban(playerid);
    }
}



Re: 0.3.7 Dos Joins - iTakelot - 30.06.2015

Anti bot attack + IP limits