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

These are old archives. They are kept for historic purposes only.
cculha
Posts: 79
Joined: Tue Sep 13, 2005 1:16 am

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

Post 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.
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post 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.
cculha
Posts: 79
Joined: Tue Sep 13, 2005 1:16 am

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

Post by Jason »

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

Is your new regex
Why the hell can't my signature be empty?
"Your message contains too few characters."
cculha
Posts: 79
Joined: Tue Sep 13, 2005 1:16 am

Post 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
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Deleted: nvm
cculha
Posts: 79
Joined: Tue Sep 13, 2005 1:16 am

Post by cculha »

?? it doesn'T happen. in that time i can't send the mails with @
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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)
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
cculha
Posts: 79
Joined: Tue Sep 13, 2005 1:16 am

Post 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?
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

There's a compilation option so that badwords in channels are always filtered even if they are not +G.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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 ;) .
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

No, I'm talking about STRIPBADWORDS_CHAN_ALWAYS :D
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Heh... I don't think I've ever seen that one. Interesting.
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Post by Jason »

What the HELL? See the [^@] at the beginning? Emails are exempt from that regexp!

Hmm.. Try changing it to..

[^@][^ @]+\.(com|net)
Why the hell can't my signature be empty?
"Your message contains too few characters."
cculha
Posts: 79
Joined: Tue Sep 13, 2005 1:16 am

Post by cculha »

ok if you know something. write the full command. i don't want sdad.net but i want [email protected] ok?
Post Reply