Page 1 of 1

Spamfilter for irc......com/info/org ....

Posted: Sat Feb 24, 2007 4:41 pm
by Talustus
is that rigth to gline users are using some addreses

like irc.bla.com or irc.blub.org

but not to gline some like irc.nameofnetwork.de

Code: Select all

/spamfilter add cpnNqt gline +0 NetworkSpam irc\..+\com
/spamfilter add cpnNqt gline +0 NetworkSpam irc\..+\org
/spamfilter add cpnNqt gline +0 NetworkSpam irc\..+\info
/spamfilter add cpnNqt gline +0 NetworkSpam irc\..+\eu
?

Posted: Sat Feb 24, 2007 5:48 pm
by Jason
The spamfilters you pasted are strange. Why are you escaping the c in com, o in org, i in info, and e in eu? Also, why isn't there a period required before them?

Those filters would match this:
I love IRC. I want some more info on it though.
All hail IRC. AIM is completely horrible. (com in completely)

You probably want this filter:

irc\.[^ ]+\.(com|org|info|eu)

Though why not .net, or others, I duno.


In addition, +0 is wrong. Use only 0. A + should never be before any duration in any unrealircd command or configuration entry. Also, why not say "Network Spam" instead of "NetworkSpam" You can add a space to the reason by putting in an _. Network_Spam would be "Network Spam"

Posted: Mon Feb 26, 2007 10:18 am
by Talustus
thx Jason it works nice thanks again but there is a second thing i need

how to block nicks like ^1907^ or ^1891^

Posted: Mon Feb 26, 2007 1:33 pm
by Jobe
^\^[0-9]{4}\^!.*

As a "user" type spamfilter should do the trick.

Posted: Mon Feb 26, 2007 4:33 pm
by coxy
/spamfilter + u block 0 go_away ^\^\d{4}\^!~*@*

Posted: Mon Feb 26, 2007 6:14 pm
by Jobe
coxy, in your regex the * modified the ~ and @ to mean 0 or more ~'s followed by 0 or more @'s

I think you meant:
/spamfilter + u block 0 go_away ^\^\d{4}\^!~.*@.*

In which case all a user would have to do is use ident responses to avoid it since the ~ only occours when an ident response isnt givern or when the IRCd has ident checking off.

Posted: Fri Mar 02, 2007 5:03 pm
by Jason
Jobe: ^ doesn't need to be escaped in your regex. It is only a special char if it is the first char, or the first in a []

Posted: Fri Mar 02, 2007 5:23 pm
by Jobe
Ahhh ok. Thanks for the tip.

:)

Re: Spamfilter for irc......com/info/org ....

Posted: Mon Dec 13, 2010 7:21 pm
by HitMan69
Can u set time duration for a gline if you add the regex on spamfilter.conf?

Re:

Posted: Mon Dec 27, 2010 12:43 pm
by akin
Jobe1986 wrote:coxy, in your regex the * modified the ~ and @ to mean 0 or more ~'s followed by 0 or more @'s

I think you meant:
/spamfilter + u block 0 go_away ^\^\d{4}\^!~.*@.*

In which case all a user would have to do is use ident responses to avoid it since the ~ only occours when an ident response isnt givern or when the IRCd has ident checking off.
Thanks..

Re: Spamfilter for irc......com/info/org ....

Posted: Sat Mar 26, 2011 1:09 pm
by DragonRyder
i noticed earlier in this post about the irc spamfilter, so i wondered if i did this would it work?

Code: Select all

//spamfilter add cpnNPqdat block 0 Network/Spam_Advertising *irc.101-freedom.(com|net|org|info|de|tk|eu|uk)*
if i need to place it a different way can someone please show me how i should set it. thanks