Algum anti-ddos que funcione por favor!!! -
Mercurio - 25.07.2012
Boa noite.
Alguйm poderia por gentileza disponibilizar um anti-ddos que funcione? Jб testei diversos e nem um deles funcionou.
Respuesta: Algum anti-ddos que funcione por favor!!! -
loganout - 25.07.2012
Esse eu acho supimpa
http://www.fortguard.com/download.html
Re: Respuesta: Algum anti-ddos que funcione por favor!!! -
Mercurio - 25.07.2012
Quote:
Originally Posted by loganout
|
WHAT?
Й script anti bot que procuro...
AW: Algum anti-ddos que funcione por favor!!! -
billy the kid - 25.07.2012
sabe aquele fs de max ip posta ae como vc usa ele !
Re : Algum anti-ddos que funcione por favor!!! -
ipsBruno - 25.07.2012
https://sampforum.blast.hk/showthread.php?tid=361931
Funciona perfeitamente.
Re: AW: Algum anti-ddos que funcione por favor!!! -
Mercurio - 25.07.2012
Quote:
Originally Posted by billy the kid
sabe aquele fs de max ip posta ae como vc usa ele !
|
pawn Код:
// maxips FS limits the number of players connecting from a
// single IP address.
#include <a_samp>
#define MAX_CONNECTIONS_FROM_IP 4
//---------------------------------------------
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("O player (%d) exerceu %d IPs conectados %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
Ban(playerid);
return 1;
}
return 0;
}
//---------------------------------------------
...
ipsBruno, eu perguntei porque tava dando warning/erro nas linhas lб, vocк respondeu para apagar e usar para ver se funfar, e nгo funfou.
AW: Algum anti-ddos que funcione por favor!!! -
billy the kid - 25.07.2012
pawn Код:
/*esta assim*/
#define MAX_CONNECTIONS_FROM_IP 4
/* aki entrara no server 4 ip iguais
mude para*/
#define MAX_CONNECTIONS_FROM_IP 1
/* se tiver mais de 1 ip igual e BAN*/
Re : Algum anti-ddos que funcione por favor!!! -
ipsBruno - 25.07.2012
Pra que max ip? Daн quem tem lan house ou internet compartilhada fica sem poder jogar e seu servidor perde muitos players.
Mercurio, Eu atualizei. Use em um filterscript
AW: Algum anti-ddos que funcione por favor!!! -
billy the kid - 25.07.2012
Quote:
|
Originally Posted by ipsBruno
Pra que max ip? Daн quem tem lan house ou internet compartilhada fica sem poder jogar e seu servidor perde muitos players.
|
as vezes perde as vezes nao por que causa ninguem joga em lan house por que hoje quase todo mundo tem um pc mais mesmo assim e melhor ele usar o seu fs por que ae nao risco de perde players
Re: Re : Algum anti-ddos que funcione por favor!!! -
Mercurio - 25.07.2012
Quote:
Originally Posted by Mercurio
pawn Код:
// maxips FS limits the number of players connecting from a // single IP address.
#include <a_samp>
#define MAX_CONNECTIONS_FROM_IP 4
//---------------------------------------------
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("O player (%d) exerceu %d IPs conectados %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip); Ban(playerid); return 1; }
return 0; } //---------------------------------------------
...
ipsBruno, eu perguntei porque tava dando warning/erro nas linhas lб, vocк respondeu para apagar e usar para ver se funfar, e nгo funfou.

|
Quote:
Originally Posted by ipsBruno
|
Quote:
Originally Posted by ipsBruno
Pra que max ip? Daн quem tem lan house ou internet compartilhada fica sem poder jogar e seu servidor perde muitos players.
Mercurio, Eu atualizei. Use em um filterscript
|
Ok Bruno.
E obrigado Billy mas nгo posso fazer isso. No meu servidor tem umas 7 pessoas com internet compartilhada e 4 que jogam em Lan :/
Bruno oque quiseste dizer com isto?
pawn Код:
if(IsPlayerBOT(playerid)) return false;