Web Hosting Talk







View Full Version : Disallowing file types


syanet
02-05-2001, 04:55 PM
Is there anyway, on a RaQ3, to make it so .extension files cannot be uploaded?

allan
02-05-2001, 05:17 PM
Do you mean through a web interface, or through FTP as well?

allan

syanet
02-05-2001, 07:38 PM
Through FTP. This would be if I wnated to ban all users from uploading certain file types to the server.

allan
02-05-2001, 10:49 PM
I don't think it is possible with ProFTPd. But you may want to ask their mailing list:

http://www.proftpd.net/

They would know for sure.

sodapopinski
02-06-2001, 12:29 AM
Originally posted by syanet
Is there anyway, on a RaQ3, to make it so .extension files cannot be uploaded?

If it's not possible to do that, I would suggest you to make a cron job that would delete in-appropriate file type.
For example *.zip *.tgz etc..

For the perfect one, block them to be downloadable by put a simple command into your .htaccess file:

<Files ~ "\.(zip|tar|rar|tgz|tar.gz|mp3|mp4|mid|mpeg|wav|avi|au)$">
Deny from all
</Files>

Hope it help

syanet
02-06-2001, 01:25 AM
Where would be a good resource to learn about putting together a cron job that will do that?