A
A
Alexander Urich2014-11-27 19:36:48
FTP
Alexander Urich, 2014-11-27 19:36:48

How to prohibit downloading, uploading certain files and viewing them in the FTP client?

By smoking mana and on the Internet, I found an option how to hide certain files in the FTP client:

<Directory ~/>
  DenyFilter      ^(\..+|file1\.conf|file2\.so)$
  HideFiles       ^(\..+|file1\.conf|file2\.so)$
</Directory>

In the client, it hides files and prevents them from being uploaded. But, if you take the full path to the file, for example
ftp://user:password( dog )site.ru/path/to/file1.conf

then this file is successfully downloaded ..
Hence the question: how to prohibit both viewing, and downloading and downloading certain files

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
t_q_l, 2015-03-30
@Urichalex

www.proftpd.org/docs/modules/mod_core.html#PathDen...

For example:
# We don't want .ftpaccess or .htaccess files to be uploaded
PathDenyFilter "(\\.ftpaccess|\\.htaccess)$"

I
Ilya Evseev, 2014-11-28
@IlyaEvseev

If it is Unix/Linux, then the easiest way is to change the file permissions so that the account under which the FTP server is running does not have the right to read them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question