Page 1 of 1
certain Gcos
Posted: Tue Nov 08, 2005 6:17 pm
by GouroB
this is the bots whois first line, i wanna block or onjoin gline these bots, what would be the regex plz ? and yah antirandom doesnt block these bots.
i found just this line in helpop bout spamfilter certain gcos/real name " 'u' user (nick!user@host:realname ban) "
Oh one more there were some spamming , they used texts like " i r c . s o m e c h a t . c o m " and i added spamfilter " .*i.*r.*c.*..* " and it started blocking everyone's text
.... any idea what would be better to block these spams ? Thanks in advance
Posted: Tue Nov 08, 2005 11:28 pm
by Jason
You mean
/spamfilter + u gzline 7d Dutty-Boz_suckzzzzzz .*:.*Dutty-Boz rulez+
Posted: Thu Nov 24, 2005 7:14 pm
by GouroB
Jason or any one any idea bout the 2nd part of ma last post ?
Oh one more there were some spamming , they used texts like " i r c . s o m e c h a t . c o m " and i added spamfilter " .*i.*r.*c.*..* " and it started blocking everyone's text .... any idea what would be better to block these spams ? Thanks in advance
this one ?
Posted: Thu Nov 24, 2005 7:21 pm
by Suchiara
maybe this?
/spamfilter add c block - - i\ r\ c\ \.\ s\ o\ m\ e\ c\ h\ a\ t\ .\ c\ o\ m
Posted: Fri Nov 25, 2005 12:09 am
by Jason
What the hell? Why do you have so many \s?
/spamfilter + cpnN gzline 7d Spam_Bot i r c . s o m e c h a t . c o m
Posted: Fri Nov 25, 2005 7:36 am
by w00t
[while not necessary, it is often good practice to escape characters like '.']
Posted: Fri Nov 25, 2005 8:54 pm
by Jason
I'll admit I was lazy, but Suchiara escaped practically everything BUT the .s
Posted: Sun Nov 27, 2005 11:04 am
by GouroB
so which one should i follow ?
/spamfilter + cpnN gzline 7d Spam_Bot i r c . s o m e c h a t . c o m
or
[while not necessary, it is often good practice to escape characters like '.']
Posted: Sun Nov 27, 2005 11:15 am
by Dukat
Escape special characters - but special characters only.
Posted: Sun Nov 27, 2005 6:30 pm
by Jason
For a final result of:
/spamfilter + cpnN gzline 7d Spam_Bot i r c \. s o m e c h a t \. c o m
Posted: Wed Nov 30, 2005 4:17 am
by GouroB
Thx Jason for the final one, working great , according to this if i wanna block any server's name what would be the regex ?
like filter should block/gzline whatever the server name just if there is irc.whatever.com , how to block this " whatever " coz it can be a new server bout what we donno yet.
i saw in one post of urs " [^@][^ ]+\.(com|net) " will it work ?
Posted: Thu Dec 01, 2005 4:06 am
by Jason
That regex was actually flawed. It is harder than that to fail to match a email address. (The [^@] would match the first non-@ character of the address)
Do you want to block all URLs and domain names, etc? I have a _VERY_ comprehensive regular expression for that.
If you just want to block irc.*.com/net/org/etc use this:
irc\.[\-a-z0-9\.]+\.(com|net|org)
See where (com|net|org) is? Just add on others if you need to: (com|net|org|ath.cx|etc).
If you have more specific needs that I didnt address or examples of specific bad messages, I can probably provide a more specific regular expression.
Posted: Mon Dec 05, 2005 6:59 pm
by igor
Jason wrote:I'll admit I was lazy, but Suchiara escaped practically everything BUT the .s
no.. he escaped all the spaces.. which is pretty dumb imo [edit] and the first period [/edit]
Posted: Fri Dec 09, 2005 9:24 pm
by GouroB
can i use this spamfilter to stop these bots
/spamfilter + u gzline 7d Dutty-Boz_suckzzzzzz .*:.*
http://www.banglacafe.com/chat/index.html+
i wanna make sure if ident " Java " and real name "
http://www.banglacafe.com/chat/index.html LiteS " matches only then Gline should take place. thats y kinda confused with this one.
Posted: Sat Dec 10, 2005 2:40 pm
by Jason