Block nicks

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

Block nicks

Post by Guest »

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 »

Code: Select all

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

Block nick

Post by guesti »

Thx for the code PAK
Guest

Post by Guest »

or, you can use services.

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

Need some help

Post by guesti »

| 20:49:17 | -irc.whatever.com- [Spamfilter] [email protected] matches filter '[a-z]{2}_[a-z]+_[a-z]{2}': [user: '[email protected]: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: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

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 »

Thank you Stealth this one works fine :D
Post Reply