Page 1 of 1

confused

Posted: Sun May 22, 2005 11:30 pm
by shahrul
Hi, can i ask, how can i add spamfilter if someone advertise irc network. like -> server irc.anydomainhost.com/net/org/my/ <- and i try type
-> /server irc.anydomainhost.com/net/org/my<- then hit CTRL on mirc. mean u didn't disconnect. any one got ideas to add that on spamfilter?
thx

Posted: Mon May 23, 2005 12:21 am
by w00t
I assume you're trying to spamfilter something like the following:

irc.blah.com
irc.blah.net
irc.blah.org

Try something like:

irc\.blah\..*

(basic, but shouldn't have false matches. dunno how efficient it is.)

Posted: Mon May 23, 2005 2:20 am
by Stealth

Code: Select all

irc\.blah\.(com|net|org|my)
You can add all the TLD's you want in the ( and ) as long as they are all separated with a |

Posted: Mon May 23, 2005 3:34 am
by w00t
aha, was wondering how you did that ;) still, mine won't need to be changed...

Posted: Mon May 23, 2005 1:03 pm
by shahrul
hmm..if spammer type like -> server irc.anydomainhost.com/net/org <- will effect too with that regex ?

Posted: Mon May 23, 2005 2:06 pm
by TigerKatziTatzi
shahrul wrote:hmm..if spammer type like -> server irc.anydomainhost.com/net/org <- will effect too with that regex ?
it wouldn't, u may use like as posted before:

irc\.blah\.(com|net|org|my| ......... all possible domains.)
or just use *irc\.blah*

blah = the posted network name.

u may starting with learning regex. its pretty important to know regex on using spamfilter.
therefore u may check this page: http://www.regular-expressions.info/

Posted: Sun May 29, 2005 10:53 am
by w00t
You missed a "." ;)

irc\.blah\..*

hm. I wonder if:
irc\.blah.* is any more efficient.