01.07.2014, 18:56
Quote:
|
2) During the attacks I tried to think of something to block each IP connecting to the server. The following scripts recognizes a massive incoming connections coming in packs, and then blocking their IP address. As the BlockIpAddress() function doesn't kicking the IP from the player slot, and it's still in use, the script is saving a list of the IPs it blocked in a file, and then loading them when the server starts. So, the purpose of the script is collecting attacker used IPs and blocking them AT START OF THE SERVER, or collect them when it's still running. Additionally with the script, i've added a file containing a quite large collection of attacker IPs (250k+). You can use it with the script. Note that loading the IPs at start may take time, and the server will be 'off' until it's loading the IPs (probably for 15min+-). However, the script is printing loading messages after each block of 10% of the IPs. The script however, became less useful when we figured out that the IPs may be responding but they aren't real. You're free to try the script. Note that I blocked IPs with the new function and not with samp.ban option. a large samp.ban file size caused my server a lot of troubles such as long lags. Download: https://www.sendspace.com/file/x4fnh1 / http://www54.zippyshare.com/v/24562439/file.html |

