Page 1 of 2

Blocking <something>.net/.com, except....

Posted: Sun Oct 09, 2005 8:29 pm
by cculha
hi there are so many topic's. i want to write it in here. i want smt. in spamfilter so regex but i couldn't. if anyone know it please help. i want my server block the .net and .com like (a.net b.net c.com adad.com dasda.net) i can do that. but when i can do that the users can't send their email address like [email protected] . so nobody can use the command /msg nickserv register pass [email protected]

Now i want to regex command for : the users can't write anything with .net and .com EXCEPT @ if a user write kalaa.com it will be blocked but if he has written [email protected] it can pass..

Please help i am waiting your answers and please try it before answer.

Posted: Sun Oct 09, 2005 9:15 pm
by Syzop
Topic title updated to something more descriptive.

You cannot use excepts, except if you want really ugly regexes, it's in one of the topics somewhere (quite old).

For your problem though, you can suggest your users to use aliases instead, such as /NS REGISTER etc... Though, I know that is not a perfect solution.

Posted: Sun Oct 09, 2005 9:17 pm
by cculha
ohh my friend. it's a very bad problem i hope one day it can be resolve... orr can i add unreal a cod. when smbdy write /msg chanserv /msg nickserv /msg memoserv it changes automaticly by unreal /ns /ms /cs ? has you have any idea?

Posted: Sun Oct 09, 2005 11:49 pm
by Jason
[^@][^ ]+\.(com|net)

Is your new regex

Posted: Mon Oct 10, 2005 7:40 am
by cculha
no my friend. if i added this regex i can't send the mail adresses!!


[10:38] <Guest24898> [email protected]
[10:38] -super.geyik.net- Message to Cihan blocked: Spam/advertising

Posted: Mon Oct 10, 2005 7:51 am
by Stealth
Deleted: nvm

Posted: Mon Oct 10, 2005 8:31 am
by cculha
?? it doesn'T happen. in that time i can't send the mails with @

Posted: Mon Oct 10, 2005 9:41 am
by Dukat
It just can't be done (easily).

But an alternative could be the following:
-> Use the Badwords system to block *.net and *.com
-> Force all users and channels to be +G using set::modes-on-connect, set::modes-on-join, set::restrict-usermodes and set::restrict-channelmodes (or even better: compile Unreal so that channels are automatically filtered - there's an option)

Posted: Mon Oct 10, 2005 2:22 pm
by cculha
(or even better: compile Unreal so that channels are automatically filtered - there's an option)


i couldn't understand what do you mean?

Posted: Mon Oct 10, 2005 2:24 pm
by Dukat
There's a compilation option so that badwords in channels are always filtered even if they are not +G.

Posted: Mon Oct 10, 2005 4:41 pm
by aquanight
Dukat wrote:There's a compilation option so that badwords in channels are always filtered even if they are not +G.
If you're referring to STRIP_BADWORDS... actually... that's the one that enables +G to work in the first place ;) .

Posted: Mon Oct 10, 2005 4:50 pm
by Dukat
No, I'm talking about STRIPBADWORDS_CHAN_ALWAYS :D

Posted: Mon Oct 10, 2005 6:39 pm
by aquanight
Heh... I don't think I've ever seen that one. Interesting.

Posted: Mon Oct 10, 2005 9:04 pm
by Jason
What the HELL? See the [^@] at the beginning? Emails are exempt from that regexp!

Hmm.. Try changing it to..

[^@][^ @]+\.(com|net)

Posted: Mon Oct 10, 2005 9:10 pm
by cculha
ok if you know something. write the full command. i don't want sdad.net but i want [email protected] ok?