Word sequence
-
- Posts: 8
- Joined: Mon Apr 25, 2005 8:56 am
Word sequence
What will be the regexp to block a specific word with any syntex,
i.e.
someword
s o m e w o r d
so me wo rd
s_o_m_e_w_o_r_d
(s)(o)(m)(w)(o)(r)(d)
anyhow if they use that word with any syntex it will be blocked, Shall i use some thing like *s*o*m*e*w*o*r*d* ? Thats what i use in ban nick block in unrealircd.conf
Can anyone help me out?
Thanks.
i.e.
someword
s o m e w o r d
so me wo rd
s_o_m_e_w_o_r_d
(s)(o)(m)(w)(o)(r)(d)
anyhow if they use that word with any syntex it will be blocked, Shall i use some thing like *s*o*m*e*w*o*r*d* ? Thats what i use in ban nick block in unrealircd.conf
Can anyone help me out?
Thanks.
-
- Posts: 8
- Joined: Mon Apr 25, 2005 8:56 am
Read the documentation. It clearly states that regular expressions are not the same as glob matching (ie wildcards, what you're using).
try /spamfilter add cpnda gline - - ^.*s.*o.*m.*e.*w.*o.*r.*d$
(excuse my poor regex skills guys, feel free to correct me.)
try /spamfilter add cpnda gline - - ^.*s.*o.*m.*e.*w.*o.*r.*d$
(excuse my poor regex skills guys, feel free to correct me.)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-
- Posts: 8
- Joined: Mon Apr 25, 2005 8:56 am
-
- Posts: 8
- Joined: Mon Apr 25, 2005 8:56 am
I need another information
The solution is perfect. but the problem is when some one add something infront of it or after it spamfilter is not doing anything. i.e.
i have added word "someword" in spam filter. but if some one type irc.someword.com spamfilter not doing anything. Is there any solution?
Thanks.
The solution is perfect. but the problem is when some one add something infront of it or after it spamfilter is not doing anything. i.e.
i have added word "someword" in spam filter. but if some one type irc.someword.com spamfilter not doing anything. Is there any solution?
Thanks.
I put them there to reduce the likelyhood of false matches.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Actually, you didn't need those to prevenet false posatives... All you needed is:
Code: Select all
s.?o.?m.?e.?w.?o.?r.?d
Yes, but then what stops things like:
so43meword
so43meword
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
True... but... >.>. Ok. Maybe the docs should then be changed to reflect a recommendation of ? over *?
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-
- Posts: 8
- Joined: Mon Apr 25, 2005 8:56 am