Jump to content

Archived

This topic is now archived and is closed to further replies.

chain

hop attack protection

Recommended Posts

  • Administrators
Quote

#hop.att on
on @*:join:#: {
  set %tname hop.att $+ $chan
  if ($hget(%tname,$address($nick,4)) == $nick) {
    inc %hop.att
    ban -ku300 # $nick 4 <-- /hop attack prot bY ch1zra :: %hop.att ::
    hdel %tname $address($nick,4)
  }
  if (!$hget(%tname,$address($nick,4))) { hadd -mu10 %tname $address($nick,4) $nick }
}
#hop.att end

menu channel {
  .$iif($group(#hop.att).status == on,$style(1),$style(0)) $+ Enable /hop prot: $iif($group(#hop.att).status == on,.disable,.enable) #hop.att
}

 

Just some basic "/hop attack" (also know as the Revolving Door). It's a situation when someone join/part a channel a lot of times in a very short time. The result is flooding the chan with join/part event messages. Well, not any more :]

Usage : auto
(with option to enable/disable via Channel popup)

Link to comment
Share on other sites



×
×
  • Create New...