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

These are old archives. They are kept for historic purposes only.
Post Reply
Talustus
Posts: 13
Joined: Tue Dec 05, 2006 3:00 pm

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

Post 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
?
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post 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"
Why the hell can't my signature be empty?
"Your message contains too few characters."
Talustus
Posts: 13
Joined: Tue Dec 05, 2006 3:00 pm

Post 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^
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

^\^[0-9]{4}\^!.*

As a "user" type spamfilter should do the trick.
coxy
Posts: 17
Joined: Fri Jun 30, 2006 2:51 pm
Location: myanmar
Contact:

Post by coxy »

/spamfilter + u block 0 go_away ^\^\d{4}\^!~*@*
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post 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.
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post 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 []
Why the hell can't my signature be empty?
"Your message contains too few characters."
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post by Jobe »

Ahhh ok. Thanks for the tip.

:)
HitMan69
Posts: 14
Joined: Sat Sep 06, 2008 3:46 am
Location: Australia
Contact:

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

Post by HitMan69 »

Can u set time duration for a gline if you add the regex on spamfilter.conf?
akin
Posts: 33
Joined: Wed Jun 22, 2005 8:41 am

Re:

Post 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..
DragonRyder
Posts: 51
Joined: Tue Feb 21, 2006 5:02 am
Location: USA, OH
Contact:

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

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