]> jfr.im git - irc/unrealircd/unrealircd.git/blame - dccallow.conf
Create branch unreal33.
[irc/unrealircd/unrealircd.git] / dccallow.conf
CommitLineData
6ec3822c
BM
1/* Example of a possible semi-secure /DCCALLOW configuration written by Syzop.
2 * $Id$
3 *
4 * Actually nothing is *100% secure*... there could still be
5 * bugs in the software itself (think: a winamp bug that can
6 * be exploited via an mp3, or: a wmplayer bug that can be
7 * exploited via a specially crafted .wmv, etc..).
8 * If you are really that paranoid you could just remove
9 * all 'allow dcc'-blocks and prompt the user for EVERY file ;).
10 *
11 * Still, I think this file is a good tradeoff between userfriendlyness
12 * and security. Note that when you try to only DENY specific
13 * file type (exe, com, etc) you are *guaranteed* to miss ones
14 * (like: did you know .r17 gets treated as a rar archive?
15 * and that an exe can be disguished as .cmd which is executable
16 * on nt/w2k/xp?)
17 */
18
19/* first.. deny everything, then allow known-good stuff... */
20deny dcc { filename "*"; reason "Possible executable content"; soft yes; };
21/* common image formats */
22allow dcc { filename "*.jpg"; soft yes; };
23allow dcc { filename "*.jpeg"; soft yes; };
24allow dcc { filename "*.gif"; soft yes; };
25allow dcc { filename "*.png"; soft yes; };
47f3c432 26allow dcc { filename "*.bmp"; soft yes; };
6ec3822c
BM
27/* audio / video (but not scripted/playlists!) */
28allow dcc { filename "*.mp1"; soft yes; };
29allow dcc { filename "*.mp2"; soft yes; };
30allow dcc { filename "*.mp3"; soft yes; };
31allow dcc { filename "*.mpg"; soft yes; };
32allow dcc { filename "*.mpeg"; soft yes; };
33allow dcc { filename "*.m1v"; soft yes; };
34allow dcc { filename "*.m2v"; soft yes; };
47f3c432 35allow dcc { filename "*.vob"; soft yes; };
6ec3822c 36allow dcc { filename "*.wav"; soft yes; };
6ec3822c
BM
37/* text / misc */
38allow dcc { filename "*.txt"; soft yes; };
47f3c432 39allow dcc { filename "*.log"; soft yes; };
6ec3822c
BM
40allow dcc { filename "*.pdf"; soft yes; };
41allow dcc { filename "*.c"; soft yes; };
42allow dcc { filename "*.cpp"; soft yes; };