help with spamfilters

These are old archives. They are kept for historic purposes only.
Post Reply
tonyf
Posts: 4
Joined: Tue Oct 25, 2005 8:43 pm

help with spamfilters

Post 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!

:)
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post 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
Why the hell can't my signature be empty?
"Your message contains too few characters."
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Please read http://www.vulnscan.org/UnrealIrcd/unre ... html#regex for a better understanding of regex.
tonyf
Posts: 4
Joined: Tue Oct 25, 2005 8:43 pm

does not work

Post 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?

thanks.
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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.
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

tonyf:

Code: Select all

/helpop ?spamfilter
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

I apologize, my brain was off when I wrote that. Stealth is right.
Why the hell can't my signature be empty?
"Your message contains too few characters."
tonyf
Posts: 4
Joined: Tue Oct 25, 2005 8:43 pm

sorry

Post by tonyf »

sorry.. this regex is hard :(

so how would i write http://www.something.somethingelse.com

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


thanks
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: sorry

Post by Syzop »

tonyf wrote:is this correct? www\.something\.somethingelse\.com
Yes :)
Suchiara
Posts: 64
Joined: Fri May 20, 2005 2:37 pm

Post by Suchiara »

actually, logically regex http://www.something.somethingelse.com would also be correct in this case, because . means any symbol, and here that any symbol is "." :D lol :)
pak
Posts: 17
Joined: Thu Mar 11, 2004 8:26 pm

Post by pak »

using that argument,

Code: Select all

.*
is also correct, doesn't mean you should use it :P
Post Reply