Web Hosting Talk







View Full Version : FTP Programs


ClusterMania
12-13-2001, 01:32 AM
Is there any way to set ftp to only allow certain file types and file settings? Are there any ftp programs that you can install on your server to do that?

getweb
12-13-2001, 03:47 AM
Do you know what FTP server you are running? Most support some sort of file filtering. I know ProFTPD does. Keep in mind, it may be weak protection - if I want to upload an MP3 and you don't allow them, I can call it BackstreetBoys.txt or MoodyBlues.dat... Also don't forget if they have telnet or other access, they can just rename the file once it's up there.

Give us more info on your setup and we can help you out.

ClusterMania
12-13-2001, 12:16 PM
Originally posted by getweb
Do you know what FTP server you are running? Most support some sort of file filtering. I know ProFTPD does. Keep in mind, it may be weak protection - if I want to upload an MP3 and you don't allow them, I can call it BackstreetBoys.txt or MoodyBlues.dat... Also don't forget if they have telnet or other access, they can just rename the file once it's up there.

Give us more info on your setup and we can help you out.

I am planning to use proftp or anything else. I want to limit the upload to only certain file types like only *.*htm,*.*html,*.*jpg,*.*jpeg etc....

Is there a way of doing this and can I set it so you can't upload anything larger than 500K? I remember Xoom.com and geocities.com was able to do this. I just don't know how they did this.

getweb
12-13-2001, 12:35 PM
Yes. ProFTPD has an apache-like configuration file, and there are directives that let you choose which extensions are allowed, as well as how big the files can be. Again, I think most FTP servers do, but I am most familiar with ProFTP.

http://www.proftpd.org

Specifically,

http://www.proftpd.org/docs/configuration.html

will show you a list of the configuration options, you can pick through and see if you find what you need.

ClusterMania
12-13-2001, 01:34 PM
Originally posted by getweb
Yes. ProFTPD has an apache-like configuration file, and there are directives that let you choose which extensions are allowed, as well as how big the files can be. Again, I think most FTP servers do, but I am most familiar with ProFTP.

http://www.proftpd.org

Specifically,

http://www.proftpd.org/docs/configuration.html

will show you a list of the configuration options, you can pick through and see if you find what you need.

Have you done anything like this before? Looks very complicated. Can you write up a example? Hope it's not too much to ask