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 » Tue Oct 25, 2005 8:49 pm

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 » Tue Oct 25, 2005 9:38 pm

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 » Tue Oct 25, 2005 10:03 pm

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 » Tue Oct 25, 2005 10:25 pm

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 » Tue Oct 25, 2005 10:47 pm

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: 1889
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop » Tue Oct 25, 2005 11:57 pm

tonyf:

Code: Select all

/helpop ?spamfilter

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

Post by Jason » Wed Oct 26, 2005 2:12 am

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 » Wed Oct 26, 2005 7:25 am

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: 1889
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: sorry

Post by Syzop » Wed Oct 26, 2005 3:08 pm

tonyf wrote:is this correct? www\.something\.somethingelse\.com
Yes :)

Suchiara
Posts: 64
Joined: Fri May 20, 2005 2:37 pm

Post by Suchiara » Wed Oct 26, 2005 4:58 pm

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 » Thu Oct 27, 2005 3:16 pm

using that argument,

Code: Select all

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

Post Reply