[16:10:59] [join] NieXrlaM_uw0k[(yv@L= has joined the server (5:62.195.83.195)
[16:10:59] Incoming connection: 62.195.83.195:54916
[16:10:59] Incoming connection: 62.195.83.195:54917
[16:11:00] Incoming connection: 62.195.83.195:54918
[16:11:00] Incoming connection: 62.195.83.195:54919
[16:11:00] Incoming connection: 62.195.83.195:54920
[16:11:00] Incoming connection: 62.195.83.195:54921
[16:11:00] Incoming connection: 62.195.83.195:54922
[16:11:01] Incoming connection: 62.195.83.195:54923
[16:11:01] Incoming connection: 62.195.83.195:54924
[16:11:01] Incoming connection: 62.195.83.195:54925
[16:11:01] Incoming connection: 62.195.83.195:54926
[16:11:01] Incoming connection: 62.195.83.195:54927
[16:11:02] Incoming connection: 62.195.83.195:54928
[16:11:02] Incoming connection: 62.195.83.195:54929
[16:11:02] Incoming connection: 62.195.83.195:54930
[16:11:02] Incoming connection: 62.195.83.195:54931
[16:11:02] Incoming connection: 62.195.83.195:54932
[16:11:02] Incoming connection: 62.195.83.195:54933
[16:11:02] Incoming connection: 62.195.83.195:54934
yeah... but if he's having dynamic ip.. is useless
I just want something to auto-ban ip if see 2-3 connection is 2 sec and something like this |
Then range-ban, that would stop him from performing the attack again.
|
Added y_flooding and some changes to firewall... i think it's fine... maybe that will stop any attack
|
Range ban won't do shit.
You need to be sure you installed 'FloodControl.inc' properly. |
#define MAX_PING_ALLOWED 1000 // Or whatever you want it to be.
public OnPlayerConnect(playerid)
{
if(GetPlayerPing(playerid) >= MAX_PING_ALLOWED)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You have been kicked. Reason: Max Ping.");
Kick(playerid);
}
return 1;
}
// OR:
// Add to OnGameModeInit:
SetTimer("PingCheckTimer", 5000, true); // 5000 == 5 Seconds. True == Repeating Timer. False == Non-Repeating Timer. // Meaning it will repeat the check, every 5 seconds.
// And now the Checker.
#define MAX_PING_ALLOWED 1000 // Or whatever you want it to be.
forward PingCheckTimer(playerid);
public PingCheckTimer(playerid)
{
// Kick players with a high ping
if(GetPlayerPing(playerid) >= MAX_PING_ALLOWED)
{
SendClientMessage(playerid, 0xFFFFFFAA, "You have been kicked. Reason: Max Ping."); // 0xFFFFFFAA == White.
Kick(playerid);
}
return 1;
}