Block nicks

These are old archives. They are kept for historic purposes only.
Post Reply
Guest

Block nicks

Post by Guest » Thu Oct 20, 2005 4:56 pm

Hi there...

This one is a new type of flood i have seen

the person that connects hes bots to my server are:

aa_anyword_aa
bb_anyword_ww
ge_anyword_cc

where (anyword) changes every time his trying to flood like:

as_master_js
lp_champ_wk
cc_freak_aq

I tried to catch tham like ??\_\*\_?? but its not working properly

My question is, how can i block a nickname that starts with 2 letters than _ than a word _ again two letters

Thx in advens!!!

pak
Posts: 17
Joined: Thu Mar 11, 2004 8:26 pm

Post by pak » Thu Oct 20, 2005 6:56 pm

Code: Select all

[a-z]{2}_[a-z]+_[a-z]{2}
should work for you

guesti

Block nick

Post by guesti » Fri Nov 11, 2005 12:53 pm

Thx for the code PAK

Guest

Post by Guest » Thu Dec 01, 2005 2:31 pm

or, you can use services.

/os sqline add ??_*_?? Reason

guesti

Need some help

Post by guesti » Thu Dec 29, 2005 7:55 pm

| 20:49:17 | -irc.whatever.com- [Spamfilter] MIRI_NEW!~Loti_I_Ve@82.114.69.216 matches filter '[a-z]{2}_[a-z]+_[a-z]{2}': [user: 'MIRI_NEW!~Loti_I_Ve@82.114.69.216:op'] [ Possible Botnet - Not Allowed here! ]

It is catching also nicks that have only one _ or maybe it catched the identd Loti_I_Ve

Does some one know the code for spamfilter to gline only thos users with nicks like:

aa_whatever_aa, bb_whatever_cc, es_whatever_qa etc.

Thx in advance

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth » Fri Dec 30, 2005 2:34 am

pak wrote:

Code: Select all

[a-z]{2}_[a-z]+_[a-z]{2}
People forget that regex will match anything that is not defined in the regex. You should use:

Code: Select all

^[a-z]{2}_[a-z]+_[a-z]{2}!
Notice I added an ^ at the beginning, and an ! at the end. These will make it only match the nick.

guesti

Works fine

Post by guesti » Sun Jan 15, 2006 12:57 pm

Thank you Stealth this one works fine :D

Post Reply