How to make your site forbidden but still download files?

Hi,

Does anyone know how to make your index - www.yoursite.com - forbidden so people can see the list of files on your site but still download them if you give them a direct link to the files (save target as)?

Thanks,

okay, this has *nothing* to do with smartftp or even ftp in general, but i'm in a good mood today ;-)
in case of an apache web server, create a file named ".htaccess" in the root and add the line "Options -Indexes" to it.

I know of an FTP server where everybody can upload and download, but you are not allowed to retrieve a file listing of that directory, so you explicitly have to know the name of the file you want to download; so it mus

But the name Peterwhite171 mentions suggests it is a web server, so the solution is great. I wish I had known it some months ago, instead I constructed a little PHP script to make it work the other way round.

If the .htaccess doesn't work the easiest way is probably to create an empty index.html and to upload it to that directory.