Page 1 of 1

how to add...

Posted: Tue Feb 08, 2005 7:38 am
by commandr
there are some users joining my network to spam stuff like this:

<lmao> come to irc.my n e t w o r k .net
<lmao> come to irc.my- network.net
<lmao> come to irc.my -network.net
<lmao> come to irc.m y- n e t w o r k.net
<lmao> come to irc.my - netw o r k.net

how to add to spamfiler?

spamfilter {
regex ""; <--- need help here.
target { private; channel; part; quit; topic; private-notice; channel-notice; };
reason "Spamming is not allowed";
action gline;
ban-time 12h;
};

Posted: Tue Feb 08, 2005 8:09 pm
by White_Magic
<lmao> come to irc.my n e t w o r k .net
<lmao> come to irc.my- network.net
<lmao> come to irc.my -network.net
<lmao> come to irc.m y- n e t w o r k.net
<lmao> come to irc.my - netw o r k.net
regex - .*irc\..*m.*y.*n.*e.*t.*w.*o.*r.*k.*\..*net

someone can prolly give u a better one thou :D this will cover all those above

Posted: Wed Feb 09, 2005 3:45 am
by commandr
spamfilter {
regex "*irc\..*x.*-.*r.*e.*a.*c.*t.*i.*o.*n.*\..*net";
target { private; channel; part; quit; topic; private-notice; channel-notice; };
reason "Spamming is not allowed";
action kill;
};

[00:30] * Now talking in #chat
[00:30] * Modes on channel: +ntG

[00:49] * Joins: docmastic [[email protected]]
[00:49] <docmastic> irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net
[00:49] <docmastic> irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net

don't work :/

Posted: Wed Feb 09, 2005 3:57 am
by w00t
Don't ask me how to do regex, I suck without a guide to help me or something, but those asterisk's won't work.

I'll try come up with something, unless someone beats me to it.

Posted: Wed Feb 09, 2005 4:51 am
by Syzop
That regex should work just fine (it's a good regex except for the * at the beginning which is not needed).
And actually it also works fine here:
[05:49:15] <@Ein> irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net
[05:49:15] Closing Link: Ein[syzop.testnet] (Spamming is not allowed)

So, hmm :p.

Posted: Wed Feb 09, 2005 5:48 am
by White_Magic
commandr wrote: spamfilter {
regex "*irc\..*x.*-.*r.*e.*a.*c.*t.*i.*o.*n.*\..*net";
target { private; channel; part; quit; topic; private-notice; channel-notice; };
reason "Spamming is not allowed";
action kill;
};

[00:30] * Now talking in #chat
[00:30] * Modes on channel: +ntG

[00:49] * Joins: docmastic [[email protected]]
[00:49] <docmastic> irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net
[00:49] <docmastic> irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net irc. x - r e a c t i o n .net

don't work :/
Regex should be (in my eyes) this

.*irc\..*x.*r.*e.*a.*c.*t.*i.*o.*n.*\..*net.*

(i blame not having a " . * " on the end) but this is the ircd config, are u sure they are not spamming on the server without this config ?

Posted: Wed Feb 09, 2005 7:40 am
by commandr
yes.. White_Magic. I add .*irc\..*x.*r.*e.*a.*c.*t.*i.*o.*n.*\..*net.* and work fine.

[04:35] Closing Link: foxer[200.xxx.xx.xx] (Spamming is not allowed)

Thank you.

Posted: Wed Feb 09, 2005 7:48 am
by commandr
it is possible to replace the banned word with, for example, the name of my net ?

Posted: Wed Feb 09, 2005 7:51 am
by White_Magic
i dont fully understand ur question, :(

Posted: Wed Feb 09, 2005 9:37 am
by commandr
yes.. for example:

<nick1> hey! come to irc.x-reaction.net

but that in the channel says: hey! come irc.mynetwork.com (replace word)

Posted: Wed Feb 09, 2005 9:44 am
by White_Magic
this regex will is maybe not the best one to use, but it will stop any irc name.

regex -> .*IRC.*\..*\..*

this will stop any one who says " IRC.anytext.anytext "

Posted: Wed Feb 09, 2005 9:53 am
by Dukat
commandr: If you need to replace it, use the badwords system. The Spamfilter is for filtering spam, not for replacing bad words... :D

White_Magic: That's a very bad regex, don't use that... It would affect LOTS of innocent users... (it would ban "i spend 14hrs on irc... for 5days a week... im not an addict...", just to give an example)

Posted: Wed Feb 09, 2005 10:03 am
by White_Magic
Dukat wrote:commandr: If you need to replace it, use the badwords system. The Spamfilter is for filtering spam, not for replacing bad words... :D

White_Magic: That's a very bad regex, don't use that... It would affect LOTS of innocent users... (it would ban "i spend 14hrs on irc... for 5days a week... im not an addict...", just to give an example)
im well aware wot the regex can do, he asked a question i gave him a solaution :D
this regex will is maybe not the best one to use
everyone has 2 cents, and that was mine :)

Posted: Wed Feb 09, 2005 4:55 pm
by Darvocet
everyone has 2 cents, and that was mine :)
You guys have two cents I can borrow?