Simple anti proxy

By Chaz on May 22, 2005

Just a simple code to prevent proxies from ClonesX.

;Requires pushmode! You may want to add your own kick command, but ban is enough to stop the proxy from talking/changing nick/join/part
;http://www.xs4all.nl/~wiebeson/mirc/pushmode.txt Pushmode by wiebe
;pushes modes together ie: +bbbb nick1 nick2 nick3 nick4 instead of new lines
;matches anything with 4 numbers at the end of the nick
;which normally means less likely chance to flood out
;An example is:
;* x7544 has joined #channel
;* x8172 has joined #channel
;* a8945 has joined #channel
;* K8243 has joined #channel
;* t3893 has joined #channel
;* Z7262 has joined #channel
;* d5442 has joined #channel
;* C4572 has joined #channel
;* u7247 has joined #channel
;* L5474 has joined #channel
;* c5925 has joined #channel
;* Bot sets mode: +bbbbbb x7544 x8172 a8945 K8243 t3893 Z7262
;* Bot sets mode: +bbbbb d5442 C4572 u7247 L5474 c5925

;@ prefix so it only works if the bot is op on the channel...
;! prefix, so it doesn't kick the bot...
on !@*:JOIN:#chan:{
  ;checks for anything ending in 4 numbers, typically a proxy using clonesx
  ;you don't need to check the start, a nick is invalid with a numer at the start
  if ($regex($nick,\d{4}$)) {
    ;pushes modes together so bot doesnt flood out
    pushmode $chan +b $nick
    ;closing bracket for if...
  }
  ;closing bracket
}

Comments

Sign in to comment.
Marky   -  Dec 21, 2011

The same script using pushmode does the following:
;
; [18:25:11] AVERAGE ANTI FLOOD SCRIPT WITH PUSHMODE
; [18:25:11] AVERAGE ANTI FLOOD SCRIPT WITH PUSHMODE
; [18:25:11] AVERAGE ANTI FLOOD SCRIPT WITH PUSHMODE
; [18:25:11] AVERAGE ANTI FLOOD SCRIPT WITH PUSHMODE
; [18:25:11] AVERAGE ANTI FLOOD SCRIPT WITH PUSHMODE
; [18:25:11] AVERAGE ANTI FLOOD SCRIPT WITH PUSHMODE
; [18:25:11] AVERAGE ANTI FLOOD SCRIPT WITH PUSHMODE
; [18:25:11] AVERAGE ANTI FLOOD SCRIPT WITH PUSHMODE
; [18:25:11] AVERAGE ANTI FLOOD SCRIPT WITH PUSHMODE
; [18:25:12] AVERAGE ANTI FLOOD SCRIPT WITH PUSHMODE
; [18:25:12] dev-mirc sets mode: +bbbbbb !qgeqd@8V5Ry4.8vtU30.virtual !ihgkzu@8V5Ry4.8vtU30.virtual !dqqyex@8V5Ry4.8vtU30.virtual !qfzzq@8V5Ry4.8vtU30.virtual !alavec@8V5Ry4.8vtU30.virtual !avwy@8V5Ry4.8vtU30.virtual
; [18:25:13]
dev-mirc sets mode: +bbbb !tqkukhp@8V5Ry4.8vtU30.virtual !xrvdohn@8V5Ry4.8vtU30.virtual !ujundvh@8V5Ry4.8vtU30.virtual !kid@8V5Ry4.8vtU30.virtual
;
where can i get this addon which will ban those who repeate the same

Marza Liza  -  Jun 29, 2013

On @:text::#: { inc -u3 $+(%,txt,$chan,$1-) | if ($($+(%,txt,$chan,$1-),2) >= 3) { mode $chan +b $address($nick,2) } }

maybe this?

Marky  -  Jun 30, 2013

Thanks lets try it.

Sign in to comment

splatted   -  May 23, 2005

hmm.. had you written pushmode as well, I would have given you a 10 as it\'s essentially the engine behind your snippet. (although some people don\'t count under 5 lines as being a snippet)

 Respond  
Chaz   -  May 22, 2005

you need to download pushmode, http://www.xs4all.nl/~wiebeson/mirc/pushmode.txt - then load it in your remote

 Respond  
Corne   -  May 22, 2005

I pasted your code in my remote then I opend my server and connected few clones and changed their nicknames to somenicknames which were ending 4 numbers. I changed #chan to my channel and then I joined the clones and I get this: PUSHMODE Unknown command

 Respond  
Chaz   -  May 22, 2005

mode would be ban each nick individually, on a new line, it would take longer, if 30 clones come, the bot may flood out trying to do 30 lines, where as pushmode can limit that to 30/6 lines

 Respond  
Corne   -  May 22, 2005

I think there should be \'mode $chan +b $nick\' instead of \'pushmode $chan +b $nick\'

 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.