Page 1 of 1

help with spamfilters

Posted: Tue Oct 25, 2005 8:49 pm
by tonyf
I have been entering into spamfilter manualy via ssh into spamfilter.conf file.

How would I do this exact same block directly on irc using /spamfilter command.

spamfilter {
regex "*dildarbesi*";
target { private; channel; channel-notice; };
reason "whatever reason";
action kline;

Thank you for your help!


Posted: Tue Oct 25, 2005 9:38 pm
by Jason
Your regex is WRONG. Regex's *s dont mean the same thing as glob matching's *s

You want:
/spamfilter + cpN Whatever_reason dildarbesi

Posted: Tue Oct 25, 2005 10:03 pm
by Stealth
Please read ... html#regex for a better understanding of regex.

does not work

Posted: Tue Oct 25, 2005 10:25 pm
by tonyf
thanks.. i will have to learn regex...

but this /spamfilter + cpN Whatever_reason dildarbesi does not work.

for example i want to spamfilter "someword" with anything before and behind the word.

where do i put in that this is kline. i assume cpN means channel, private and Channel-Notice.. am i right? what other options and how to express them?


Posted: Tue Oct 25, 2005 10:47 pm
by Stealth

Code: Select all

/spamfilter add cpN kline - Whatever_reason dildarbesi
You can replace the - with the time you want the kline to last.

Posted: Tue Oct 25, 2005 11:57 pm
by Syzop

Code: Select all

/helpop ?spamfilter

Posted: Wed Oct 26, 2005 2:12 am
by Jason
I apologize, my brain was off when I wrote that. Stealth is right.


Posted: Wed Oct 26, 2005 7:25 am
by tonyf
sorry.. this regex is hard :(

so how would i write

that "something" and "somethingelse" are very common words and i dont want to block them by itself.. has to have www. and .com

is this correct? www\.something\.somethingelse\.com


Re: sorry

Posted: Wed Oct 26, 2005 3:08 pm
by Syzop
tonyf wrote:is this correct? www\.something\.somethingelse\.com
Yes :)

Posted: Wed Oct 26, 2005 4:58 pm
by Suchiara
actually, logically regex would also be correct in this case, because . means any symbol, and here that any symbol is "." :D lol :)

Posted: Thu Oct 27, 2005 3:16 pm
by pak
using that argument,

Code: Select all

is also correct, doesn't mean you should use it :P