| Subcribe via RSS

Restrict file type with vsftpd

September 4th, 2011 | 170 Comments | Posted in FTP, Linux, network

vsftpdvsftpd have an option to restrict file type(s) for upload/download.  That vsftpd option is deny_file.  For example, to restrict file *.mp3 and *.avi, use this in vsftpd configuration file:

deny_file={*.mp3,*.avi}

If we put the option in vsftpd.conf, it will be applied to all vsftpd users.  In virtual users configuration, we can put the option in specific user configuration file, so only selected user will be affected by the configuration.

Tags: ,