Page 1 of 1

Spamfilter

Posted: Mon Nov 29, 2004 6:48 am
by GouroB
Stealth said
^Guest(\d+)?!
....

i follow the way he said ... but still no result ... i mean ... we r having some clone flood problem those bots use these sorta nick's

[dOpEbOt]-11 , [dOpEpiG]-42 , [pr0n] , [dOpEeDubOt] etc ....

so i tryed like " /spamfilter add u kill - BOT ^[dOpEpiG]\d* "

didnt work ... what should be the correct regex ?
:?

Posted: Mon Nov 29, 2004 4:45 pm
by Syzop
/spamfilter add u kill - BOT ^[dOpEpiG]\d*
'[' and ']' are characters that have a special mening in regex, so if you want a literal '[' and ']' you need to escape them ('\[' and '\]'), so:

Code: Select all

/spamfilter add u kill - BOT ^\[dOpEpiG\]\d*

Posted: Mon Nov 29, 2004 6:45 pm
by codemastr
[dOpEbOt]-11 , [dOpEpiG]-42
You need that - in your regexp too!

Code: Select all

^\[dOpEpiG\]-\d*

Thx

Posted: Tue Nov 30, 2004 6:58 am
by GouroB
Thx :D

Posted: Tue Nov 30, 2004 9:32 am
by GouroB
codemastr or sYzoP ... thx for that nick regex ... actually there is not enough info or instruction about how to use regex ... like the use of .* , \* etc .

even in helpop it shows just ..
Use: /spamfilter [add|del|remove|+|-] [type] [action] [tkltime] [reason] [regex]
[type] specifies the target type, you can specify multiple targets:
'c' channel msg, 'p' private msg, 'n' private notice,
'N' channel notice, 'P' part msg, 'q' quit msg, 'd' dcc,
'a' away, 'u' user (nick!user@host:realname ban)
[action] specifies the action to be taken (only 1 action can be specified):
'kill', 'tempshun' (only shun current session), 'shun',
'kline', 'gline', 'zline', 'gzline', 'block' (blocks the msg),
'dccblock' (unable to send any dccs), 'viruschan' (part all channels
and join the virus help chan).
[regex] this is the actual regex where we should block on
[tkltime] the duration of the *LINEs placed by action (use '-' to use the default
set::spamfilter::ban-time, this value is ignored for block/tempshun');
[reason] the reason for the *LINE or blockmsg, CANNOT CONTAIN SPACES,
'_' will be translated to spaces. Again, if you use '-' for this
the default (set::spamfilter::ban-reason) is used.
so it would be a great help if any one of u or any one could do anything ...

Posted: Tue Nov 30, 2004 1:36 pm
by DeadNotBuried
i'd suggest doing a search on google etc for "regex" , there are thousands of sites out there explaining how to use regex's.

Posted: Mon Jul 11, 2005 5:19 am
by w00t
Also, regex is documented - in the docs.

bots

Posted: Wed Dec 14, 2005 10:16 pm
by Darklord
can u pls type me what to put in spamfilter for this under:

[22:53] * Joins: b_kurrrr_b (~U2FsdGVkX@zavisni-D8420B50.sw.biz.rr.com)
[22:53] * Joins: h_kurrrr_h (~d5956433@zavisni-C3847B05.kasserver.com)
[22:53] * Joins: a_kurrrr_a (wwwrun@zavisni-8C44AD30.brune.org)
[22:53] * Joins: q_kurrrr_q (~d5956433@A0EF5230.CD2E8C60.D04C69DF.IP)
[22:53] * Joins: z_kurrrr_z (~irccgiuse@zavisni-8F8DA2C8.vserver.de)
[22:53] * Joins: ee_kurrrr_ee (wwwirc@zavisni-86FDE507.lautlos.cc)
[22:53] * Joins: m_kurrrr_m (~d5956433@zavisni-D5931244.gwadalou.org)
[22:53] * Joins: gg_kurrrr_gg (~d5956433@zavisni-87FC1075.bluehost.com)
[22:53] * Joins: x_kurrrr_x (~d5956433@zavisni-6391A3E5.plyntv01.mi.comcast.net)
[22:53] * Joins: rr_kurrrr_rr (~d5956433@zavisni-A49C3AE3.pureserver.info)
[22:53] * Joins: u_kurrrr_u (~d5956433@5F6DADC5.EE50ADBB.4C368DE2.IP)
[22:53] * Joins: kk_kurrrr_kk (~d5956433@zavisni-6878C87D.kasserver.com)
[22:53] * Joins: g_kurrrr_g (www-data@zavisni-C987E8E8.hu)
[22:53] * Joins: yy_kurrrr_yy (~txuser@zavisni-9EA9863C.kasserver.com)
[22:53] * Joins: p_kurrrr_p (~d5956433@zavisni-84A7F646.de)
[22:53] * Joins: v_kurrrr_v (~d5956433@zavisni-403D6C2C.iatp.by)
[22:53] * Joins: ww_kurrrr_ww (apache@zavisni-B9C6110C.eggdrop.hu)
[22:53] * Joins: dd_kurrrr_dd (~d5956433@zavisni-44A0C59E.telincom.ru)
[22:53] * Joins: tt_kurrrr_tt (~d5956433@zavisni-623944DA.ictoadd.com)
[22:53] * Joins: hi_kurrrr_hi (~d5956433@zavisni-CC54AC65.ef-net.ru)
[22:53] * Joins: zz_kurrrr_zz (~d5956433@zavisni-18FD20BA.servnow.com)
[22:53] * Joins: uu_kurrrr_uu (~d5956433@zavisni-E37DA9C6.izhnet.ru)
[22:53] * Joins: r_kurrrr_r (~Simplesne@zavisni-867A8404.nortenet.pt)

Posted: Sat Dec 17, 2005 4:19 pm
by Jason

Code: Select all

^([a-z]{1,2})_kurrrr_\1!

Posted: Sat Dec 17, 2005 10:01 pm
by aquanight
eh...

just spamfiltering kurrrr would be enough. How many real people have a name like kurrrr ?!

Posted: Tue Dec 20, 2005 4:00 am
by Jason
Even one is too many.