[Ajuda] Ataques flood login.
#1

Vim aqui pois foi relatado que meu servidor estava a ser atacado por um Cleo banal que creio eu que todos conhecem.
O indivнduo clica diversas vezes а um local, e cada clique й 1 player BOT no servidor. Assim o player logando e saindo rapidamente.


Screen;

Alguйm poderia me indicar algum script ou algo do tipo para evitar esses "BOTS" ?
Reply
#2

http://forum.sa-mp.com/showthread.ph...t=floodcontrol
Reply
#3

Quote:
Originally Posted by THE_FALLEN
Посмотреть сообщение
Uso isso, mas nгo funciona...

@EDIT

Obrigado, irei testar uma coisa aqui
Reply
#4

tente esse se nao pegar: https://sampforum.blast.hk/showthread.php?tid=354537
Reply
#5

Use: max_ips:

pawn Код:
// maxips FS limits the number of players connecting from a
// single IP address.

#include <a_samp>

#define MAX_CONNECTIONS_FROM_IP     3

//---------------------------------------------

public OnFilterScriptInit()
{
    printf("\n*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP = %d\n",MAX_CONNECTIONS_FROM_IP);
}

//---------------------------------------------
// GetNumberOfPlayersOnThisIP
// Returns the number of players connecting from the
// provided IP address

stock GetNumberOfPlayersOnThisIP(test_ip[])
{
    new against_ip[32+1];
    new x = 0;
    new ip_count = 0;
    for(x=0; x<MAX_PLAYERS; x++) {
        if(IsPlayerConnected(x)) {
            GetPlayerIp(x,against_ip,32);
            if(!strcmp(against_ip,test_ip)) ip_count++;
        }
    }
    return ip_count;
}

//---------------------------------------------

public OnPlayerConnect(playerid)
{
    new connecting_ip[32+1];
    GetPlayerIp(playerid,connecting_ip,32);
    new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
   
    if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP) {
        printf("MAXIPs: Connecting player(%d) exceeded %d IP connections from %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
        Kick(playerid);
        return 1;
    }

    return 0;
}
   
//---------------------------------------------
Credits:
SA-MP Team
Reply
#6

Sгo dos mesmos IP's? Se forem, pode dar ban nele. Entao, rangeban ou apenas ficar banindo :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)