how to add...

These are old archives. They are kept for historic purposes only.
Post Reply
commandr
Posts: 40
Joined: Tue Jan 04, 2005 3:18 am
Location: Argentina

how to add...

Post by commandr » Tue Feb 08, 2005 7:38 am

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;
};

White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic » Tue Feb 08, 2005 8:09 pm

<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
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D

commandr
Posts: 40
Joined: Tue Jan 04, 2005 3:18 am
Location: Argentina

Post by commandr » Wed Feb 09, 2005 3:45 am

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 [sadsad@2D6BEA01.D2A0469F.161E8464.IP]
[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 :/

w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t » Wed Feb 09, 2005 3:57 am

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.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]

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

Post by Syzop » Wed Feb 09, 2005 4:51 am

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.

White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic » Wed Feb 09, 2005 5:48 am

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 [sadsad@2D6BEA01.D2A0469F.161E8464.IP]
[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 ?
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D

commandr
Posts: 40
Joined: Tue Jan 04, 2005 3:18 am
Location: Argentina

Post by commandr » Wed Feb 09, 2005 7:40 am

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.

commandr
Posts: 40
Joined: Tue Jan 04, 2005 3:18 am
Location: Argentina

Post by commandr » Wed Feb 09, 2005 7:48 am

it is possible to replace the banned word with, for example, the name of my net ?

White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic » Wed Feb 09, 2005 7:51 am

i dont fully understand ur question, :(
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D

commandr
Posts: 40
Joined: Tue Jan 04, 2005 3:18 am
Location: Argentina

Post by commandr » Wed Feb 09, 2005 9:37 am

yes.. for example:

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

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

White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic » Wed Feb 09, 2005 9:44 am

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 "
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D

Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat » Wed Feb 09, 2005 9:53 am

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)

White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic » Wed Feb 09, 2005 10:03 am

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 :)
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D

Darvocet
Posts: 105
Joined: Sun Jun 27, 2004 6:40 am
Location: Houston, TX
Contact:

Post by Darvocet » Wed Feb 09, 2005 4:55 pm

everyone has 2 cents, and that was mine :)
You guys have two cents I can borrow?
- Darvocet
Sr. Network Admin: EpicIRC.Net

Post Reply