Top

Query Flood Protection


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  May 10, 2009
Last Updated  May 10, 2009
Tags  flood  protection  query 

Introduction

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.

Grab the Code

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

  (5)  RSS
napa182
Comments: 1,454
 
mIRC Snippet:  Query Flood Protection
Posted on May 10, 2009 10:13 pm
why ignore everyone? why not ignore the one thats flooding you?
just seems it would be ez just to do this
Code:
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?
Cheiron
Comments: 627
 
mIRC Snippet:  Query Flood Protection
Posted on May 11, 2009 5:33 am
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
[code]
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...
}
}
WorldDMT
Comments: 171
 
mIRC Snippet:  Query Flood Protection
Posted on May 11, 2009 11:08 am
hi
u can only do this

Code:

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...
  }
}

RevJohn Straub
Comments: 46
 
mIRC Snippet:  Query Flood Protection
Posted on May 11, 2009 3:35 pm
napa is a Great teacher im learning alot from him
Aucun50
Comments: 548
 
mIRC Snippet:  Query Flood Protection
Posted on May 11, 2009 7:09 pm
Was going to point out the ignore everyone thing, i would go with napa's are maybe try and make your own.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom