spaces between letters creating problem !

These are old archives. They are kept for historic purposes only.
Post Reply
GouroB
Posts: 182
Joined: Thu Oct 28, 2004 7:42 pm
Location: London
Contact:

spaces between letters creating problem !

Post by GouroB »

ok as i said in topic ... lemme explain a bit
we were having some damn fanatic's who were doing advertising for other servers but this time they r using Spaces in their text , and for that spamfilters r not working . lemme first give u the add text they were using ...
15,014,06,0 Join W W W . B D F E A . C O M 14,015,0
i used this spamfilter below
/spamfilter add cpnN block - advertiser .*BD.*FEA.*

didnt work .... any idea ?
-=GouroB=-
https://www.shunno.info
Your complete web Solution
Irc.BanglaCafe.com
LargesT Chat server in BanglaDesH
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

If there's a spacer between every letter, why didn't you add this to your spamfilter (only between BD and FEA?)?

.*B.*D.*F.*E.*A.*
GouroB
Posts: 182
Joined: Thu Oct 28, 2004 7:42 pm
Location: London
Contact:

Post by GouroB »

Dukat ,
yes i did that too but that been blocking normal text of the pplz too ... lemme give u a example .
@Spamfiler[23:40] -abc.zxc.com- [Spamfilter] SeenServ![email protected] matches filter '.*B.*D.*F.*E.*A.*N.*E.*T.*': [NOTICE Mr_Risk_free_Lover_31DHK: 'I found 3 matches to your query: lili, AXE, Love_For_All. lili ([email protected]) was last seen joining #bangladesh 37 seconds ago (08.03. 17:39). lili is still there.'] [advertiser]
and like this pplz normal text also was being blocked becoz of that .
-=GouroB=-
https://www.shunno.info
Your complete web Solution
Irc.BanglaCafe.com
LargesT Chat server in BanglaDesH
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

use:

.?B.?D.?F.?E.?A.?N.?E.?T.?
Syzop
UnrealIRCd head coder
Posts: 2116
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

This is what I personally would use (well, the regex):

Code: Select all

/spamfilter add cpnN block - advertiser w.*w.*w.*\..*b.*d.*f.*e.*a.*\..*c.*o.*m
(perhaps next time they will use 2 or 3 spaces ;p)

[edit]
Perhaps it's worth explaining how to do this for people who are not familiar with regexes (actually you should check the online docs -> regex section ;p):
first the url:

Code: Select all

www.bdfea.com
but you need to escape . to \., so:

Code: Select all

www\.bdfea\.com
then you just insert .* after each letter (and in the case of \., after that)

Code: Select all

w.*w.*w.*\..*b.*d.*f.*e.*a.*\..*c.*o.*m
and that would be your regex.
[/edit]
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

If they really are only using spaces you can use this regex:

Code: Select all

w *w *w *\. *b *d *f *e *a *\. *c *o *m
(However, it is possible that there's actually a letter there hidden by a color code, in which case syzop's regex works better :P)
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

His also stops possible future permutations :)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
GouroB
Posts: 182
Joined: Thu Oct 28, 2004 7:42 pm
Location: London
Contact:

Post by GouroB »

lol thx guys :D thats y i love this forum so much :D:D
i added both syzop's and aquanight's spamfilter , u know security first ... result was good , i caught many fishes doing that 8) .
-=GouroB=-
https://www.shunno.info
Your complete web Solution
Irc.BanglaCafe.com
LargesT Chat server in BanglaDesH
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

GouroB wrote:i added both syzop's and aquanight's spamfilter , u know security first ...
Syzop's regex matches everything aquanight's does, so adding only Syzop's would have been enough... :D
GouroB
Posts: 182
Joined: Thu Oct 28, 2004 7:42 pm
Location: London
Contact:

Post by GouroB »

ooh THX :P
-=GouroB=-
https://www.shunno.info
Your complete web Solution
Irc.BanglaCafe.com
LargesT Chat server in BanglaDesH
Post Reply