Query Flood Protection

By yayan on May 10, 2009

This simple snippet use for protect from others flood bots. This script will close all query that come from the flood suspect. And also ignore other user for 60 secs.

on *:OPEN:?:*: {
  inc -u3 %spam. [ $+ [ $+(nick,$cid) ] ]
  if (%spam. [ $+ [ $+(nick,$cid) ] ] == 3) {
    echo -as 4[ $+ $time $+ ]12 Ignoring All in 1 Minutes (Flood Detected)
    .ignore -u60 *!*@* 
    close -m $nick
    var %a.isi = %spam1. [ $+ [ $+(nick,$cid) ] ] 
    var %a.hit = 1, %a.total = $numtok(%a.isi,44) 
    while (%a.hit <= %a.total) {
      close -m $gettok(%a.isi,%a.hit,44)
      inc %a.hit 
    }   
    .timer 1 60 echo -as 4[ $+ $time $+ ]12 Ignoring All Off
    if ($window(@Flood,0) == 0) { window -eknl0 @Flood tahoma } | .aline -p @Flood $jam from: $nick $+ %spam1. [ $+ [ $+(nick,$cid) ] ] 9»3 $1-
    halt
  }
  elseif (%spam. [ $+ [ $+(nick,$cid) ] ] < 3) {
    set -u10 %spam1. [ $+ [ $+(nick,$cid) ] ] %spam1. [ $+ [ $+(nick,$cid) ] ] $+ $iif((%spam. [ $+ [ $+(nick,$cid) ] ] > 0),$chr(44)) $+ $nick
  }
}

Comments

Sign in to comment.
Aucun50   -  May 11, 2009

Was going to point out the ignore everyone thing, i would go with napa's are maybe try and make your own.

 Respond  
RevJohn Straub   -  May 11, 2009

napa is a Great teacher im learning alot from him

 Respond  
WorldDMT   -  May 11, 2009

hi
u can only do this

on *:text:*:?:{
  inc -u3 %fld. $+ $nick
  if ($($+(%,fld,.,$nick),2) >= 3) {
    .close -m $nick
    .ignore -pu60 $wildsite
    echo 4 -s *** query flood from $nick Address $wildsite - Ignoring for 60secs...
  }
}
 Respond  
Cheiron   -  May 11, 2009

as a build on from napa's code there... i would probably add a warning to the nick before the ignore kicked in. also .... looking at mirc, under mirc options there is an inbuilt flood protector which is most useful which is set for ignore time / per lines


on *:text:*:?:{ 
  inc -u2 $+(%,p2p,.,$nick)
  if ($($+(%,p2p,.,$nick),2) = 4) {
    .msg $nick please do not flood my pm box as it has triggered a timed ignore on you
    .close -m $nick
    .ignore -pu60 $address($nick,2)
    echo -ta *** P2P flood from $nick Address $address($nick,2) - Ignoring P2P's for 60secs...
  }
}
 Respond  
napa182   -  May 10, 2009

why ignore everyone? why not ignore the one thats flooding you?
just seems it would be ez just to do this

on *:text:*:?:{ 
  inc -u2 $+(%,p2p,.,$nick)
  if ($($+(%,p2p,.,$nick),2) = 4) {
    .close -m $nick
    .ignore -pu60 $address($nick,2)
    echo -ta *** P2P flood from $nick Address $address($nick,2) - Ignoring P2P's for 60secs...
  }
}

oh yeah btw whats $jam ??? is it some alias you didnt include?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.