Page 1 of 1

I need a second set of eyes to check this expression.

Posted: Thu Jul 17, 2008 6:17 pm
by JRBlood

Code: Select all

/spamfilter add u gzline 90d Bot_Flooder ^(?-i)[a-z]{5}[0-9]{2,3}+![a-z]{2}+@[^:]+:[a-z]{2}
Did I do this right? It should block bots like:

Code: Select all

mqxcg245 (~re@mail.rexmetal.com) (oq)  
ytyof63 (~df@adsl196-198-26-217-196.adsl196-9.iam.net.ma) (ye) 
seayb449 (~go@adsl196-198-26-217-196.adsl196-9.iam.net.ma) (xs) 
owjgy543 (~ex@63.105.58.13) (ab)
hywgz622 (~st@61.145.59.220) (ge)
vnjbc271 (~xu@210.187.119.244) (mt)
qpgyy823 (~mu@212.116.219.211) (wl)
mgfxk940 (~uh@gip194.internetdsl.tpnet.pl) (jm)
Note that one of them has only 2 digits in the nick (There were more than just this one).

Re: I need a second set of eyes to check this expression.

Posted: Thu Jul 17, 2008 8:27 pm
by Jobe1986
Try using the regex:

Code: Select all

^(?-i)[a-z]{5}[0-9]{2,3}!~?[a-z]{2}@[^:]+:[a-z]{2}(?i)$

Re: I need a second set of eyes to check this expression.

Posted: Fri Jul 18, 2008 1:12 am
by JRBlood
Tks. I'll take a closer look at what you did compaired to mine. I should be home by now ;)