Answer the question
In order to leave comments, you need to log in
Is it possible to hide a file on ftp for certain users?
There is a conf.php file in the site root which stores the password in the site database.
Often there is a need to give FTP access to some developers, but you don't want them to get access to the database. Is there any way to hide this file from them?
Answer the question
In order to leave comments, you need to log in
For shared hosting, the only way to "hide" a file is to encrypt it, ie. close the ionCube or Zend Encoder file you need.
If there was access to the console, i.e. at least VDS, it would be possible to fool around with the rights a little, but since it is not there, I will not describe this method.
To get started, write to the support of your hosting provider and ask if they have ionCude (or Zend) Loader on their hosting. The essence of this encryption is the encoding of a text script into a bytecode, i.e. when you open the file in a text editor, you will see some kind of meaningless set of characters, but for PHP it will still be meaningful code. Wikipedia about Zend says:
ionCude does pretty much the same thing. The question is which is better? I sympathize more with Zend myself. once quite actively worked with their instruments. ionCude I can't say better or worse, because I almost never encountered it.
ZendEncoder has been on the torrents for a long time, but I saw a form of online encryption on the ionCube website. So decide for yourself what you like best. Both solutions will do the job for you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question