Page 1 of 1

block file sharing

Posted: Mon Aug 16, 2004 3:58 pm
by Pepper-Tech
spamfilter {
regex "{mp3|mp4|m4a|ogg|zip|rar|ace|exe}";
target dcc;
action dccblock;
reason "Filesharing not allowed";
};

We're trying to block file sharing on our IRC server, what are we doing wrong??

Posted: Mon Aug 16, 2004 4:15 pm
by aquanight
First of all note that this could catch:

C:\unzip dump\someinfo.txt

try: \.{mp3|mp4|m4a|ogg|zip|rar|ace|exe}$

Posted: Mon Aug 16, 2004 4:26 pm
by Pepper-Tech
spamfilter {
regex "\.{mp3|mp4|m4a|ogg|zip|rar|ace|exe}$";
target dcc;
action dccblock;
reason "Filesharing not allowed";
};

Still not going. :S I know netadmins and IRCops are immune yet a java client should be blocked when a non-oper.

Posted: Mon Aug 16, 2004 7:14 pm
by Stealth
Thats why there are deny DCC blocks:

Code: Select all

deny dcc { filename "*.mp3"; reason "File sharing is not permitted"; };
deny dcc { filename "*.mp4"; reason "File sharing is not permitted"; };
deny dcc { filename "*.m4a"; reason "File sharing is not permitted"; };
deny dcc { filename "*.ogg"; reason "File sharing is not permitted"; };
deny dcc { filename "*.zip"; reason "File sharing is not permitted"; };
deny dcc { filename "*.rar"; reason "File sharing is not permitted"; };
deny dcc { filename "*.ace"; reason "File sharing is not permitted"; };
deny dcc { filename "*.exe"; reason "File sharing is not permitted"; };
Don't use spamfilter for such basic things, especially when you cannot figure it out.