Question : how to drop existing connection ?

Hello

I have ddos attack on my server from some little IPs but those Ips make too many connection on my apache
once I have block the Ip by Iptables I have the current connection from the same IP still exist for specify time doesn't dropped immediately
is there any tools or script or command  can help to drop all connections to apache from the blocked IP immediately ?

Answer : how to drop existing connection ?

"What is the correct way to define the API functions?"

As stated previously, change all "Long" to "Integer".

For example, the first one of:

    Public Declare Function CryptAcquireContext Lib "advapi32.dll" Alias "CryptAcquireContextA" ( _
        phProv As Long, ByVal pszContainer As Long, ByVal pszProvider As String, _
        ByVal dwProvType As Long, ByVal dwFlags As Long) As Long

Becomes this:


    Public Declare Function CryptAcquireContext Lib "advapi32.dll" Alias "CryptAcquireContextA" ( _
        phProv As Integer, ByVal pszContainer As Integer, ByVal pszProvider As String, _
        ByVal dwProvType As Integer, ByVal dwFlags As Integer) As Integer

Be sure to change the local variables as well!

So this line:

    Dim lHExchgKey As Long

Would become:

    Dim lHExchgKey As Integer
Random Solutions  
 
programming4us programming4us