[HELP] Strange DDoS Attack
#1

Hello,

Some cheaters are making my game mod crash by writing some big number strings in the chat.

The mod freezes and it became a regular server

I'm using CRP mode and we have OOC, IC & several distance chat's [You can only read the chat from people arround you]

How can i fix this problem?

Thanks,
Whiteagle
Reply
#2

Range IP banning their IP's? That's the only way I could think about. Means you search for their IP's, then open the samp.bans file and when their IP is 198.34.64.75 as an example, you add 198.34.64.*. You can then look after some days if they stopped and remove the IP again, most guys won't repeat it.
Reply
#3

or add in checks to those commands that they type big numbers into
Reply
#4

It's not a goddamn DDoS.

Use sscanf.
Reply
#5

first off DDos would shut down your server so can't be that. 2nd what gamemode you using?
Reply
#6

Quote:
Originally Posted by Mr187
2nd what gamemode you using?
Quote:
Originally Posted by Whiteagle
I'm using CRP mode and we have OOC, IC & several distance chat's [You can only read the chat from people arround you]
If you're going to help, try reading.
Reply
#7

Quote:
Originally Posted by Jolteon | RD Left
Quote:
Originally Posted by Mr187
2nd what gamemode you using?
Quote:
Originally Posted by Whiteagle
I'm using CRP mode and we have OOC, IC & several distance chat's [You can only read the chat from people arround you]
If you're going to help, try reading.
CRP? wtf is that? is it Godfather edit or what?
Reply
#8

Try this
pawn Код:
// Top of script
#define MAX_COMMAND 100 // Maximum command length

// OnPlayerCommandText
if(strlen(cmdtext) >= MAX_COMMAND)
{
  return SendClientMessage(playerid, color, "SERVER: Unknown Command"); // Make them think the command is unknown
}
Reply
#9

well see, if its a Godfather edit and if someone spams up your chat with 99/99/999999999999999999999 etc. thats them using a bug with the birthday system. what you gotta do is limit it.
Reply
#10

Thanks to all!!!!

JeNkStAX you Rock

Fixed.

[ Range IP Banning would not work, dyn. ip addresses are the most common thing here in portugal ]

For those of you that've been asking CRP it's Carlito's RP and it is not a GF edit, topic: http://forum.sa-mp.com/index.php?topic=91010.0

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)